N
neuromancer
I have a structure that has members that are other structures or
enums.
Here it is:
Public Structure ColumnType
dim Name As String
dim ConsecType As enumConsecutiveTypes
dim AllowedTextValues() As structTextValueAndCount /*ARRAY*/
dim Dependent As Boolean
End Structure
Then I declare:
Public gColumnStruct As New ColumnType()
But when I try and refer to "gColumnStruct.Dependent", I'm told that
'Dependent' is not a member. Whats wrong with the declaration?
Also, in the structure, I have another structure:
dim AllowedTextValues() As structTextValueAndCount
But I'm not sure if this is correct. Do I need to use the word NEW,
as in:
dim AllowedTextValues() As NEW structTextValueAndCount
And even if I did, would that allocate space for every member of the
array?
Thanks,
FN13
enums.
Here it is:
Public Structure ColumnType
dim Name As String
dim ConsecType As enumConsecutiveTypes
dim AllowedTextValues() As structTextValueAndCount /*ARRAY*/
dim Dependent As Boolean
End Structure
Then I declare:
Public gColumnStruct As New ColumnType()
But when I try and refer to "gColumnStruct.Dependent", I'm told that
'Dependent' is not a member. Whats wrong with the declaration?
Also, in the structure, I have another structure:
dim AllowedTextValues() As structTextValueAndCount
But I'm not sure if this is correct. Do I need to use the word NEW,
as in:
dim AllowedTextValues() As NEW structTextValueAndCount
And even if I did, would that allocate space for every member of the
array?
Thanks,
FN13