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]. 

Answers

  • lemster68
    lemster68 ✭✭✭
    Instead of the brackets you need to use the curly braces. {}
    Lee Justice