adwaitjoshi
Active member
- Joined
- Dec 29, 2005
- Messages
- 38
- Programming Experience
- 1-3
If I have a structure
Structure ABC
Dim A As Integer
Dim B As Integer
Dim C As String
End Structure
Dim _struct() As Structure
Instead of saying
_struct(0).A = 1
_struct(0).B = 1
_struct(0).C = "Value"
How can I say something like
_struct(0) = (1, 1, "Value") (this syntax gives me error)
Also for this structure how can I lookup the value in C based on some value for A and B. Say I want to lookup the value of _struct.C where _struct.A=1 and _struct.B=1
Structure ABC
Dim A As Integer
Dim B As Integer
Dim C As String
End Structure
Dim _struct() As Structure
Instead of saying
_struct(0).A = 1
_struct(0).B = 1
_struct(0).C = "Value"
How can I say something like
_struct(0) = (1, 1, "Value") (this syntax gives me error)
Also for this structure how can I lookup the value in C based on some value for A and B. Say I want to lookup the value of _struct.C where _struct.A=1 and _struct.B=1