• Welcome to Dark Bit Factory & Gravity.
 

Types in types[BB2D]

Started by Paul, December 28, 2006

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Paul

Hi
I'm quite new to types and wonder how to do a type in an other type

Here is my try...

Type dir
   Field Name$
End Type

Type file
   Field a.dir
   Field name$
End Type

a.dir=New dir
   a\name$="test"
   dir.file=New file
      a\name="testfile"
   
   
For a.dir=Each dir
   I=I+1
   Text 5,I*20,a\name$
   For dir.file=Each file
      i=i+1
      Text 25,I*20,dir\name$
   Next
Next



I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won:

mike_g

I was trying to figure the same thing out a couple of days ago.

Hope this helps: link