0

in vb6 we can declaration arecord like this
Type x
a As Integer
b As String
End Type

and deal to this record by
dim s as x
s.a=1
s.b="hi"

but i cant do that in vb.net
any one can help me
please

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by lolafuertes
0

Using a structure will give you this functionality.

dim structure myStruct
a As Integer
b As String
end structure

dim somename as myStruct

somename.a=100
somename.b="This is a string int the structure."
0

@dmacalm: Yes, thats what I proposed.
@rami2005: If this solved your question, please be so kind to mark this thread as solved.
If you have more questions, do not hesitate to start new threads.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.