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 else
                        0 
Categories
- All Categories
 - 5.6K RobotStudio
 - 401 UpFeed
 - 21 Tutorials
 - 15 RobotApps
 - 306 PowerPacs
 - 407 RobotStudio S4
 - 1.8K Developer Tools
 - 250 ScreenMaker
 - 2.9K Robot Controller
 - 363 IRC5
 - 81 OmniCore
 - 8 RCS (Realistic Controller Simulation)
 - 853 RAPID Programming
 - 31 AppStudio
 - 4 RobotStudio AR Viewer
 - 19 Wizard Easy Programming
 - 110 Collaborative Robots
 - 5 Job listings