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 / help with function please...

Author
Message
mbaucco
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 22nd May 2006 22:09 Edited at: 22nd May 2006 22:10
Hello,
(using DBP, forgot to put it in the title)
I am trying to write a function that lets me pass the name of an array of user-defined objects, but I can't figure out how to pass the name of the array to the function properly. Here is the code, followed by the error message:



and here is the error message:



Thanks in advance for any help!

-Matt
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 23rd May 2006 00:17
Unfortunately DBPro does not support passing array names like other languages.

You can have multi level arrays though, so you could use first level of array to differentiate between different types.

Also remember that arrays in DBPro are global by default, so DIMing them at top of program means they are automatically available inside functions.

Boo!
mbaucco
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 23rd May 2006 15:41
ahh, many thanks, I could not figure out what I was doing wrong.

Login to post a reply

Server time is: 2024-11-26 19:49:35
Your offset time is: 2024-11-26 19:49:35