Trying to get a value at an index point in an array
Hello,
I am trying to access a certain array index value.
Example code:
PERS num array{10}; !!! example array [1,2,3,4,5,6,7,8,9,10]
VAR num maxVal;
PROC maxSearch()
maxVal := array[1] !!! trying to get value at index 1 of array, but getting an error stating " wrong array dimensions" , trying to access value: 1 in the array [1,2,3,4,5,6,7,8,9,10].
I am trying to access a certain array index value.
Example code:
PERS num array{10}; !!! example array [1,2,3,4,5,6,7,8,9,10]
VAR num maxVal;
PROC maxSearch()
maxVal := array[1] !!! trying to get value at index 1 of array, but getting an error stating " wrong array dimensions" , trying to access value: 1 in the array [1,2,3,4,5,6,7,8,9,10].
Tagged:
0
Answers
-
Instead of the brackets you need to use the curly braces. {}Lee Justice0
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
- 344 IRC5
- 70 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 842 RAPID Programming
- 19 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings