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.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings