hmm what am I doing wrong.

ZeroEffect

Junior Contributor
Joined
Oct 24, 2004
Messages
204
Location
Detroit, MI
Or am I doing something that can't be done.

I have a module with some structures and functions. In my main application i create the class by using
Code:
Dim a as new b

I have access to the structure but the functions do not show up. I can get by but it would be nice if these showed up. Where should I start?
 
They are public subs. Here is an example of a function I am using to clear data from a structure.

Code:
    Public Sub ClearGenExtra(ByVal gen As GENInfo)
        gen.gen.extra.Cut = ""
        gen.gen.extra.Group = ""
        gen.gen.extra.Length = ""
        gen.gen.extra.Custom1 = ""
        gen.gen.extra.Custom2 = ""
    End Sub

Unless I am missing something, I believe I am ;O), they should be showing up.

Thanks

ZeroEffect
 
If you type the function name though does it still work or is the compiler failing to find them as well? What version of visual studio are you running?

Out of interest have you considered just making the functionality part of the structure, that way it behaves more Object Orientated and saves you needing to worry about the functions not appearing in the intellisense.
 
The function names still work and there are no compile errors but shouldn't they show up. I am using VS2008.

Ok how would I add then as part of a structure?

Thansk

ZeroEffect
 
Back
Top