Seeks a procedure identified by its name. The procedure found can be run directly.
// Name of the procedure that must be found and run
NameCallBackProcedure is string
NameCallBackProcedure = "Global_procedures_of_MyProject.CallBack"
// Variable used to retrieve the result of the search for the procedure
procCallback is procedure
// Seeks the procedure whose name is found in the "NameCallBackProcedure" variable
procCallback = SeekProcedure(NameCallBackProcedure)
// Checks whether the sought procedure was found
IF procCallback = Null THEN
// Procedure not found
Info(StringBuild("The <%1> procedure was not found.", ...
// Procedure found
// Call to the procedure found
<Result> = SeekProcedure(<Procedure name> [, <Option>])
<Result>: Procedure variable
- Name of the Procedure variable that will correspond to the procedure found.
- "NULL" if no procedure is found.
<Procedure name>: Character string
Name of the procedure to find. This name can be prefixed by the set of procedures or by the name of the window in which the procedure is found.
<Option>: Optional Integer constant
Search mode of the procedure:
|Search among the procedures of the project.|
|trtProjectProcedure||Search among the procedures of the host project of the component.|