FindFunctionDefinition PowerScript function
Description
Searches for a global function in one or more PowerBuilder
libraries (PBLs) and provides
information about the script definition.
Syntax
|
1 |
<span>FindFunctionDefinition</span> ( <span>functionname</span> {, <span>librarylist</span> } ) |
|
Argument |
Description |
|---|---|
|
functionname |
The name of a global function for which |
|
librarylist |
An array of strings whose values are |
Return Values
ScriptDefinition. Returns an object reference with information
about the script of functionname. If any arguments
are null, FindFunctionDefinition returns null.
Usage
You can call FindClassDefinition to get
a class definition for a global function. However, the ScriptDefinition
object provides information tailored for functions.
Examples
This example searches the libraries for the running
application to find the function definition for f_myfunction:
|
1 |
ScriptDefinition sd_myfunc |
|
1 |
sd_myfunc = <span>FindFunctionDefinition</span>("f_myfunction") |
This example searches the libraries in the array ls_libraries to
find the class definition for w_genapp_frame:
|
1 |
ScriptDefinition sd_myfunc |
|
1 |
string ls_libraries[ ] |
|
1 |
|
1 |
ls_libraries[1] = "c:pwrsizappwindows.pbl" |
|
1 |
ls_libraries[2] = "c:pwrsframewkwindows.pbl" |
|
1 |
ls_libraries[3] = "c:pwrsframewkancestor.pbl" |
|
1 |
|
1 |
sd_myfunc = <span>FindFunctionDefinition</span>( & |
|
1 |
"f_myfunction", ls_libraries) |