Author Topic: Types in types[BB2D]  (Read 362 times)

0 Members and 1 Guest are viewing this topic.

Offline Paul

  • Pentium
  • *****
  • Posts: 1490
  • Karma: 47
    • View Profile
Types in types[BB2D]
« on: December 28, 2006 »


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



« Last Edit: July 21, 2007 by Shockwave »
I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won:

Offline mike_g

  • Amiga 1200
  • ****
  • Posts: 435
  • Karma: 34
    • View Profile
Re: Types in types
« Reply #1 on: December 29, 2006 »
I was trying to figure the same thing out a couple of days ago.

Hope this helps: link