Joska Paszli
New member
- Joined
- Sep 7, 2012
- Messages
- 2
- Programming Experience
- 3-5
helllo dear readers
I have programming experiences in VB6 and now making my first steps into Visual Studio 2010, to rewrite old vb6 code to vs2010
I have a question about modules vs classes, a Fine explanation of class and module
But still I am puzzled and was thinking that maybe giving an example would be best....
STEP 1: read a (poly)line from a file, which has coordinates
STEP 2: divide this line in segments of 10 meter, start splitting from a side of the line
STEP 3: each segment of 10 meter must contain some elements like a NUMBER of the segment, a SIDE (left or right), an option to store a value on each side and such..... which i use later in the programmm to fill it with data for each side of the line different........so how i store the data.....?
What should i do in VB2010? making a module with structures or a class or ...? Also code is appreciated...
In VB6 I would make use of this code with a DIM and a TYPE statement (if i remember well, cuz cant get to code due to new windows 7 pc) and store it in a module like this
I have programming experiences in VB6 and now making my first steps into Visual Studio 2010, to rewrite old vb6 code to vs2010
I have a question about modules vs classes, a Fine explanation of class and module
But still I am puzzled and was thinking that maybe giving an example would be best....
STEP 1: read a (poly)line from a file, which has coordinates
STEP 2: divide this line in segments of 10 meter, start splitting from a side of the line
STEP 3: each segment of 10 meter must contain some elements like a NUMBER of the segment, a SIDE (left or right), an option to store a value on each side and such..... which i use later in the programmm to fill it with data for each side of the line different........so how i store the data.....?
What should i do in VB2010? making a module with structures or a class or ...? Also code is appreciated...
In VB6 I would make use of this code with a DIM and a TYPE statement (if i remember well, cuz cant get to code due to new windows 7 pc) and store it in a module like this
VB.NET:
Type segment
number as integer
side as integer
points as long
End type
Dim seg(0-100) as segment
Last edited: