Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

FindMatchingFunction – PB Docs 2019 – PowerBuilder Library

FindMatchingFunction – PB Docs 2019

FindMatchingFunction

PowerScript function

Description

Finds out what function in a class matches a specified signature.
The signature is a combination of a script name and an argument
list.

Applies to

ClassDefinition objects

Syntax

Argument

Description

classdefobject

The name of the ClassDefinition object describing the
class in which you want to find a function.

scriptname

A string whose value is the name of the function.

argumentlist

An unbounded array of strings whose values are the
datatypes of the function arguments. If the variable is passed
by reference, the string must include “ref” before the datatype.
If the variable is an array, you must include array brackets
after the datatype.

The format is:

For a bounded array, the argument must include the range,
as in:

Return value

ScriptDefinition. Returns an object instance with information about
the matching function. If no matching function is found,
FindMatchingFunction returns null. If any argument is null, it also
returns null.

Usage

In searching for the function, PowerBuilder examines the collapsed
inheritance hierarchy. The found function may be defined in the current
object or in any of its ancestors.

Arguments passed by reference

To find a function with an argument that is passed by reference, you
must specify the REF keyword. If you have a VariableDefinition object for
a function argument, check the CallingConvention argument to determine if
the argument is passed by reference.

In documentation for PowerBuilder functions, arguments passed by
reference are described as a variable, rather than simply a value. The
PowerBuilder Browser does not report which arguments are passed by
reference.

Examples

This example gets the ScriptDefinition object that matches the
PowerBuilder window object function OpenUserObjectWithParm and looks for
the version with four arguments. If it finds a match, the example calls
the function uf_scriptinfo, which creates a report about the
script:

The uf_scriptinfo function gets information about the function that
matched the signature and builds a string. Scriptobj is the
ScriptDefinition object passed to the function:

See also

FindClassDefinition

FindFunctionDefinition

FindTypeDefinition


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x