However, there are two problems with the code in the 1st message above.[list=1][*]the UDT definition is called "MyLlist" not "MyList",[*]"name" is a reserved word.[/list=a]
The following runs fine for me:
Code:
type MyReg sName as string * 20 Address as string * 30 Phone as string * 12 end type type MyList Count as integer Register(100) as MyReg end type Dim aList as MyList, List1 as MyList Incr aList.Count List1.Register(aList.Count).sName = "Joseph" List1.Register(aList.Count).Address = "Mexico 10" List1.Register(aList.Count).Phone = "1234567890
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: