Initializing help system before first use

findproc

Purpose
This subroutine is deprecated and will be removed in a future release. Use subroutine findident of module mmreflect instead.
Check if a zero-argument public procedure with the given name exists
Synopsis
function xreflect~findproc( procname:string ):boolean
Argument
procname 
The name of the procedure to find
Return value
If a zero-argument public procedure with the given name is found, true. Otherwise, false.
Example
In the following:
public procedure myproc1
  writeln('hello');
 end-procedure
 public procedure myproc2(xyz:string)
  writeln('world');
 end-procedure
 writeln('findproc(myproc1)=',findproc('myproc1'))
 writeln('findproc(myproc2)=',findproc('myproc2'))
 
myproc1 will be found but myproc2 will not be found as it requires an argument. Therefore the example produces this output:
findproc(myproc1)=true
findproc(myproc2)=false
 
Further information
1. If procname is the name of a function, findproc will return false.
2. If procname takes arguments, findproc will return false.
3. If procname is overloaded, findproc will return true if one of the overloads takes no arguments.
Related topics

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