Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Clarification on Arrays as Lists, Queues, and Stacks

Author
Message
Llag
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location:
Posted: 25th Sep 2003 07:57 Edited at: 25th Sep 2003 08:57
Hi I am using the Alienware DBPro Demo
and it doesn't have any usage examples for
the array functions such as ARRAY INSERT AT TOP,
and the help files are pretty vague...
does anyone have any usage examples?

Also, do these commands work for multidimensional arrays as well?
Edit- Just figured out the answer to the second question = no




The problem I am having is that I am creating and returning a multi-dimensional array inside of a function and I cannot copy it to a variable when the function returns. I'm going to look into pointers to see if that will help; if not will try globals...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Sep 2003 15:19
There are simple stack/queue examples posted in the Codebase.

At the moment you cannot pass or return arrays to/from functions. You are stuck with using globals or maybe experiment with my array plugin (although the linking arrays feature is a bit error prone - you'll see in the docs/example code)

Login to post a reply

Server time is: 2024-09-21 01:09:14
Your offset time is: 2024-09-21 01:09:14