getvaluetype
getvaluetype |
Purpose
Query the type of the value(s) that can be stored in an entity
Synopsis
function xreflect~getvaluetype(entityname:string):string
Argument
|
entityname
|
The name of the public entity to query
|
Return value
|
|
The value type, equal to one of the following constants:
|
Example
The following:
public declarations
myvar: string,
myarr: array(range) of real
end-declarations
writeln('myvar=',getvaluetype('myvar'))
writeln('myarr=',getvaluetype('myarr'))
produces this output:
myvar=string myarr=real
Further information
1. The
value type of an entity is the type of the values it can contain. For example, the value type of an
array of integer is
XREFLECT_TYP_INT.
2. If the specified entity name cannot be found, the function will return
XREFLECT_NOT_FOUND.
Related topics
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation ("FICO"). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
