Hey everybody,
First, don't laugh, I feel embarrassed enough as it is.
I've been working with types and arrays for a few years now but still I don't fully understand them... don't ask my why, I know it's not the most difficult thing to learn...
What if I had this type array thingy
type t_cabinet
file01$
file02$
file03$
endtype
dim cabinet(0) as t_cabinet
Okay, all good. I add new cabinets (and files) with this command
add to stack cabinet(0)
cabinet().file01$ = "blablabla"
cabinet().file02$ = "blablabla"
cabinet().file03$ = "blablabla"
Still, everything works good. I can search the cabinets in a for-next loop and I can access the data of each cabinet.
Now removing a cabinet is a problem for me. I've tried everything I can imagine.
I figured this should work:
remove from stack cabinet(id_of_desired_cabinet#)
I've tried many other ways, including finding the desired cabinet through a for next loop before removing it..
Removing one, is no problem, but I need to add and remove cabinets constantly but I only get errors ('array out of bound').
Any help is much appreciated! Thanks!!
Regards Sph!nx
www.mental-image.net