Linked list inside a structure

Just starting out? Need help? Post your questions and find answers here.
tony
User
User
Posts: 26
Joined: Thu May 01, 2003 1:35 am
Location: California
Contact:

Linked list inside a structure

Post 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()
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post 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.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Re: Linked list inside a structure

Post 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.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Post Reply