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 / a question about DBc function

Author
Message
Olympic
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 24th Aug 2004 10:21
Can I make a function to calculate a list of value and stored in a array? And when I use this function I can get the list of value?

normally,the function can only return 1 value, so I am confused how to do that.

Need help, please!
Olympic
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 24th Aug 2004 20:29
I want this because I want to make a pathfinding function, which can calculate a path and return several position value that the path is constituted.

So this pathfinding system can be used iteratively.
Can I do this in DBc?
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 24th Aug 2004 21:12
arrays are global, so you can use the data in an array to export more than one value from a function, and then use it on the next function call, hope that helps.

Mentor.

PC1: P4 3ghz, 1gig mem, 2x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.
Olympic
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location:
Posted: 25th Aug 2004 11:52
It is done! Cheers!

Login to post a reply

Server time is: 2024-09-22 22:34:53
Your offset time is: 2024-09-22 22:34:53