Initializing help system before first use

gettype

gettype


Purpose
Get type of the value contained within a basicvalue
Synopsis
function xreflect~gettype( bv:xreflect~basicvalue ):string
Argument
bv 
The basicvalue to query
Return value
 
The type of the basicvalue, equal to one of the following constants:
XREFLECT_TYP_BOOL 
boolean value
XREFLECT_TYP_INT 
integer value
XREFLECT_TYP_REAL 
real value
XREFLECT_TYP_STRING 
string value
Example
The following:
myval := basicvalue('hello')
writeln('type of myval=',myval.type) 
produces this output:
type of myval=string