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.

Author
Message
SkyeFyre
20
Years of Service
User Offline
Joined: 18th May 2004
Location: Ontario, Canada
Posted: 3rd Jun 2004 09:11 Edited at: 3rd Jun 2004 09:31
Is there any way to output more than one value from a function?
Example:

FUNCTION yo()
< bunch o' calculated stuff>
ENDFUNCTION variable1, variable2

or can you only send out one variable? because I haven't found a way to do so and I'm trying to do a character creation screen for a text based RPG and that function is supposed to deal with the entire creation.

Or even if someone has an easier way for me to do this that'd be great too

EDIT: Sorry... almost forgot, I'm using DBPro
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 3rd Jun 2004 10:55
Make the variables you want returned global and when they change in the function they will stay changed in the whole program. Then just call the function before you call the variables. At least thats the way I do it. There may be a better way.

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
SkyeFyre
20
Years of Service
User Offline
Joined: 18th May 2004
Location: Ontario, Canada
Posted: 3rd Jun 2004 11:11
Cool, thanks I'll try that

Login to post a reply

Server time is: 2024-09-22 11:14:10
Your offset time is: 2024-09-22 11:14:10