LogiView

Function 'array_length'

     
This function returns the length of an array. If a variable is not an array, the return value is 0. The array lenth is returned from DataView to LogiView as second part of the standard parameters (output the complete standard parameter with the standard function par()).
 

Syntax:

  {INT_VAR}=array_length({VAR})
 

I/O parameters:

{VAR} Variable name
-  
 

Return value:

 
{INT_VAR} Array length (0= Not an array)
 

Example:

  Declaration of Variables
 
80 EP_COUNT = 0
90 EP_MAX = array_length(DOCU_STRING_ARRAY_1)
100 while(EP_COUNT < EP_MAX)
110 ....
150 EP_COUNT = EP_COUNT + 1
160 done
 

Result:
The length of the array.

   

Functions and commands: Other Functions and Commands

 


Copyright (c) 2004-2008 Macrobject Software, All Rights Reserved.
You can change this copyright message in the "Template Settings" dialog.