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

TypeOf – PB Docs 2019 – PowerBuilder Library

TypeOf – PB Docs 2019

TypeOf

PowerScript function

Description

Determines the type of an object or control, reported as a value of
the Object enumerated datatype.

Applies to

Any object

Syntax

Argument

Description

objectname

The name of the object or control for which you want the
type

Return value

Object enumerated datatype. Returns the type of objectname. If
objectname is null, TypeOf returns null.

Usage

Use TypeOf to determine the type of a selected or dragged
control.

Examples

If dw_Customer is a DataWindow control, this statement returns
DataWindow!:

This example looks at the first five controls in the w_dept window’s
Control array property. The loop executes some statements for each control
that is a CheckBox:

This loop stores in the winobject array the type of each object in
the window’s Control array property:

If you do not know the type of a control passed via PowerObjectParm
in the Message object, the following example assigns the passed object to
a graphic object variable, the ancestor of all the control types, and
assigns the type to a variable of type object, which is the enumerated
datatype that TypeOf returns. The CHOOSE CASE statement can include
processing for each control type that you want to handle. This code would
be in the Open event for a window that was opened with
OpenWithParm:

See also

ClassName


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