|
-
Mar 17th, 2005, 01:48 PM
#1
Nested Structures [resolved]
I am developing a structure, and in this structure I need an array of a structure like this
VB Code:
Public Structure StrategyStruct
Public Name As String
Public Mode As RunMode
Public Structure Steps()
Public StepType As StepTypes
Public DesiredOutput As String
Public Time As String
End Structure
End Structure
Unfortunately the above code results in an End of statement expected error. Does anyone understand what I am trying to do, and have a method of doing it without an error?
thanks
kevin
ps
the error occurs on
VB Code:
Public Structure Steps[B]()[/B]
Last edited by kebo; Mar 17th, 2005 at 02:28 PM.
Reason: resolved
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
Mar 17th, 2005, 02:10 PM
#2
Re: Nested Structures
Try this:
VB Code:
Public Structure StrategyStruct
Public Name As String
Public Mode As RunMode
Public Steps() As StepStruct
Public Structure StepStruct
Public DesiredOutput As String
Public Time As String
End Structure
End Structure
I don't live here any more.
-
Mar 17th, 2005, 02:18 PM
#3
Re: Nested Structures
Alternatively, you could simply define the inner structure outside the outer structure. If it was part of a library, that could cause problems if somebody was able to see the inner structure when you didn't want them to, but otherwise it shouldn't matter much.
My usual boring signature: Nothing
 
-
Mar 17th, 2005, 02:28 PM
#4
Re: Nested Structures
cool, thanks coding dudes!
kevin
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
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
|