|
-
Mar 10th, 2002, 08:17 AM
#1
Thread Starter
Fanatic Member
recursive structure in VB...
Is there any way to declare a structure in VB like C...
struct Tree {
struct Tree *LeftPtr;
struct Tree *RightPtr;
int data;
}
One of the component variables points to itself.
Declaring a pointer to itself...
Is it possible in VB?
Your help is really appreciated...
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Mar 10th, 2002, 08:57 AM
#2
Instead of a structure, you could use classes.
Me points to the class itself
-
Mar 10th, 2002, 11:26 AM
#3
Lively Member
Comparing C to VB is like comparing apples and oranges.
VB does not use pointers and a struct is most similar to a class module or a basic module. Look at VB Help on modules.
-
Mar 11th, 2002, 06:04 AM
#4
Thread Starter
Fanatic Member
Thanx dude...
Looks like I gotta reinstall the space consuming help file...
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Mar 11th, 2002, 06:25 AM
#5
Bouncy Member
looks like a Type declaration ...
i.e.
VB Code:
Public Type MyType
strName As String
intNo As Integer
End Type
-
Mar 12th, 2002, 06:31 AM
#6
Thread Starter
Fanatic Member
Euk! Nope...
Sort of dynamically changing a list size...
If u learn C u should've know this in
Data Structures chapter...
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|