View Full Version : EasyCPro function variable return?
jonboy
02-18-2008, 07:24 AM
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
02-18-2008, 08:12 AM
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
02-18-2008, 09:02 AM
TNX
Hope to see you at BAE Regional!
Kingofl337
02-18-2008, 10:22 AM
You too, good luck!
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.