Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   EasyCPro function variable return? (http://www.chiefdelphi.com/forums/showthread.php?t=64444)

jonboy 18-02-2008 08:24

EasyCPro function variable return?
 
How does a user defined function in EasyCPro return more than one variable? What I found works is to declare the variables as global variables. Is this the only way to do it? I don’t necessarily want to get into pointers at this late date.

Kingofl337 18-02-2008 09:12

Re: EasyCPro function variable return?
 
1.) Create a new function:

2.) "Return Type" should be set to the variable type your function is returning. If your user function does not return a value, leave this field void

3.) Drag a "Return" block inside your function and select the variable name.

A function can only "return" 1 variable.

jonboy 18-02-2008 10:02

Re: EasyCPro function variable return?
 
TNX
Hope to see you at BAE Regional!

Kingofl337 18-02-2008 11:22

Re: EasyCPro function variable return?
 
You too, good luck!


All times are GMT -5. The time now is 00:57.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi