Return an array of num from a function
Hi!
I try to make a function that receive an array of num and then return an array, but i can not get it to work.
Is it possible to return an array from a function??
FUNC num{*} ArrayOrganizer(num Array{*})
! some boring stuff
RETURN Array{*};
ENDFUNC
0
Best Answer
-
Hi,
as i know you can not create a function which returns an array.
But you can create a procedure which returns the modified Array.
Example:
PROC ArrayOrganizer(num Array1{*}, INOUT num Array2{*})
Array2 :=Array1;
endproc
Routine call: ArrayOrganizer arr1,arr2;
arr1 is the original array and arr2 is the modfied array.
/BR
Micky
5
Answers
-
Sad to hear that, but no big problem, will have to try something else0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 801 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings