I have tried to ask this before -but it was late an I really didn't do a good job in setting the question...
Let's try this again
Here is my Question:
Is there a way to determin the type of a variable held in a structure before a value has been assigned ?
- I know that once a value has been assigned to it I can use [TypeName] to get the type of the variable.
- I also knwo that if I would declare the variable in the structure as
shared I could assigne a value to it during declaration ( This is what I might end up doing)
- If there is nothing assigned to the variable yet (see example below)
[Typename] will just return "nothing"
Is ther afunction that will actually tell me what type the variable was declared with (String , boolean , Integer .. )
Public Test As Test_T
Public Structure test
Public S_String as string
End Structure
MsgBox(TypeName(Test.S_String)) = will return "Nothing" at that point
Test.S_string = "Help"
MsgBox(TypeName(Test.S_String)) = will now return "String"