Page 1 of 1

Linked list inside a structure

Posted: Mon May 12, 2003 11:23 pm
by tony
Hello folks,

This piece of code drives me crazy. Do you know how to access a linked list stored inside a structure?

Thanks,
Tony
------------------
Structure myStruct
b.w
NewList c.w()
EndStructure

a.myStruct;

Debug a\b
Debug a\c()

Posted: Tue May 13, 2003 12:40 am
by Pupil
You can't, as far as i know, place a linked list inside a structure, you can however store a pointer to a linked list inside a structure.

Re: Linked list inside a structure

Posted: Tue May 13, 2003 1:34 pm
by tinman
tony wrote:This piece of code drives me crazy. Do you know how to access a linked list stored inside a structure?
Take a look at my linked list procedures on the resources site code snippet area. It is basically the same as the PureBasic commands, but you can put them inside structures.