Post
by Master Games » Sat Jan 03, 2004 7:50 am
We would like to know how to past a link list created using NewList command as a parameter in a procedure call. Also we would like to know how to modify the link list inside the procedure call.
example:
Code: Select all
Structure mystruct
data1.l
data2.l
EndStructure
NewList mylist.mystruct()
Procedure myproc(*listptr)
AddElement(listptr())
listptr()\data1 = 25
listptr()\data2 = 30
EndProcedure
somewhere in the program we call myproc procedure passing the link list
Executing this give us this error:
listptr() is not a function, an array, or a linked list
Last edited by
Master Games on Sat Jan 03, 2004 10:14 am, edited 1 time in total.
Thanks,
Master Games
System: P4 1.9 GHZ, 1 GB DDR Memory, 80 GB Hard Drive, WinXP Home Edition with Latest Patch, Creative labs Audigy Sound Blaster Platinum Sound Card, Geforce 3 Graphics card with 52.16 drivers