Re: udt and experiments :)
Frank,
you catched yourself into own trap with following :):
[code=thinbasic]
dim r as long
%asterix = 2
For r as long = 1 to 5
lover(1).jake(r).startrek = %asterix
printl lover(1)
NEXT
[/code]
Lover is of type Horror. So it can have members: jimmy, paula, theThing(1 to 5) or jake(1 to 10).
Lover(1).jake(r) => correct, if dotted further:
jake() is of type comix, which can have members: batman, hulk, spiderman, xmen, transmitter, starttrek
Lover(1).jake(r).startrek => correct, if dotted further:
startrek is of type Apple, which can have members: r, s, color, pants
but you did not listed any of these members.
So you would have to type something like:
[code=thinbasic]
lover(1).jake(r).startrek.r = %asterix
[/code]
Your assignment:
[code=thinbasic]
lover(1).jake(r).startrek = %asterix
[/code]
would be possible for assigning variable of type Apple, not number.
Re: udt and experiments :)
good morning petr,
thank you... I see my mistake... and have checked this early morning another part of going with
[code=thinbasic]dim r as long
%asterix = 2
For r as long = 1 to 4
lover(1).jake(r).startrek.weapon(4) = %asterix
printl lover(1)
NEXT
[/code]
and added for type apple weapon(4) ... tested it with r and s(1) too ... it works... :)
Quote:
TYPE Apple
r as integer
s(1) as integer
color as string
pants as string
weapon(4) as long
END TYPE
your idea is very good with eg.
Quote:
dim r as long
%asterix = 2
For r as long = 1 to 5
lover(1).jake(r).startrek.r = %asterix
printl lover(1)
NEXT
I believe UDT's aren't my best friends ;) no, no... just a joke...
thank you for help..., nice day, I hope with a lot of sun bathing... or icecream...
lionheart
Re: udt and experiments :)
Quote:
Originally Posted by Lionheart008
"woolverine"
OIC. The new X-men character - Half Man Half Sheep. baaa :yes: