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

FindTypeDefinition – PB Docs 2022 – PowerBuilder Library

FindTypeDefinition – PB Docs 2022

FindTypeDefinition

PowerScript function

Description

Searches for a type in one or more PowerBuilder libraries (PBLs) and
provides information about its type definition. You can also get type
definitions for system types.

Syntax

Argument

Description

typename

The name of a simple datatype, enumerated datatype, or
class for which you want information. To find a type definition
for a nested type, use this form:

librarylist (optional)

An array of strings whose values are the fully qualified
pathnames of PBLs. If you omit librarylist, FindTypeDefinition
searches the library list associated with the running
application.

PowerBuilder also searches its own libraries for built-in
definitions, such as enumerated datatypes and system
classes.

Return value

TypeDefinition. Returns an object reference with information about
the definition of typename. If any arguments are null, FindTypeDefinition
returns null.

Usage

The returned TypeDefinition object is a ClassDefinition,
SimpleTypeDefinition, or EnumerationDefinition object. You can test the
Category property to find out which one it is.

If you want to get information for a class, call FindClassDefinition
instead. The arguments are the same and you are saved the step of checking
that the returned object is a ClassDefinition object.

If you want to get information for a global function, call
FindFunctionDefinition.

Examples

This example gets a TypeDefinition object for the grGraphType
enumerated datatype. It checks the category of the type definition and,
since it is an enumeration, assigns it to an EnumerationDefinition object
type and saves the name in a string:

This example is a function that takes a definition name as an
argument. The argument is typename. It finds the named TypeDefinition
object, checks its category, and assigns it to the appropriate definition
object:

This example searches the libraries in the array ls_libraries to
find the class definition for w_genapp_frame:

See also

FindClassDefinition

FindFunctionDefinition

FindMatchingFunction


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