Initializing help system before first use

findident

Purpose
Find an identifier in the dictionary.
Synopsis
function findident(name:string, value:any):integer
Arguments
name 
Identifier
value 
Union where the value of the dictionary entry is returned
Return value
Aggregated type information of the returned dictionary entry, 0 if the identifier cannot be found or -1 if the value cannot be saved in the value variable.
Example
The following:
public declarations
 glbint:integer
 val:any
end-declarations

writeln("glbint=",glbint)
if findident("glbint",val)=STRUCT_REF+integer.id then
 val.integer:=123
end-if
writeln("glbint=",glbint)
produces this output:
glbint=0
glbint=123
Further information
1. This function returns the dictionary entry of a given identifier together with its type. The returned type information is bit encoded and associates a type code and a structure that can be decoded using getstruct, geteltype and gettypeid.
2. If the identifier corresponds to a global entity of a basic type ( i.e. integer, real, boolean or string) the resulting union value will contain a reference to the actual variable and any change to its value will be reported to the global entity.

© 2001-2022 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.