Initializing help system before first use

getindexsettypes

getindexsettypes


Purpose
Query the type of each index set of a named array entity
Synopsis
function xreflect~getindexsettypes(entityname:string):list of string
Argument
entityname 
The name of the public entity to query
Return value
 
List of the value types; one of the following constants for each index set of the array:
XREFLECT_TYP_BOOL 
boolean set
XREFLECT_TYP_INT 
integer set
XREFLECT_TYP_REAL 
real set
XREFLECT_TYP_STRING 
string set
XREFLECT_TYP_UNSUPPORTED 
a set type not supported by xreflect
Example
The following:
public declarations
  myarr: array(set of integer,set of string) of real
end-declarations
writeln('index set types=',getindexsettypes('myarr'))
produces this output:
index set types=[`integer',`string']
Further information
1. If the specified entity name cannot be found, the model will terminate with a runtime error.
2. If the specified entity is not an array, the model will terminate with a runtime error.
Related topics