Hi Everyone, I’m having a problem with syntax for searching for an array.
- I want to load a module in an order defined by an array:
CONST string Modules{4}:=[“mod1.MOD”,“mod2.mod”,“mod3.mod”,“mod4.mod”];
PROC Load_module()
FOR i FROM 1 TO Dim(Modules,1) DO
Load\Dynamic,diskhome\file:=“Modules{i}”;
Within this module are a listing of RobTargets, and another array (called “Positions#” where # will change for each module) defining the position that I need the robot to work. These are large – 2000 points and the array with 2000 names in it.
- Once that module is in memory, I want to search it to look for the array that contains the robtarget order:
SetDataSearch “robtarget”\Object:=“positions."\INMOD:=“mod{i}.mod”\GlobalSym;
getDataVal "positions.”,targets;
This is the problem area – I want to assign “positions#” to another array name “targets” so that my main program can maintain a generic variable name.
Would someone be able to help with the syntax?
thanks Darren