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

GetColumn – PB Docs 2019 – PowerBuilder Library

GetColumn – PB Docs 2019

GetColumn

PowerScript function

Description

Retrieves column information for a DataWindow, child DataWindow, or
ListView control.

For syntax for a DataWindow or a child DataWindow, see the GetColumn
method for DataWindows in the section called “GetColumn” in DataWindow Reference.

Applies to

ListView controls

Syntax

Argument

Description

listviewname

The name of the ListView control from which you want to
find the properties for a column.

index

An integer whose value is the index of the column for
which you want to find properties.

label

A string identifying the label of the column for which you
want to find properties. This argument is passed by
reference.

alignment

A value of the enumerated datatype Alignment specifying
the alignment of the column for which you want to find
properties. Values are:

  • Center!

  • Justify!

  • Left!

  • Right!

This argument is passed by reference.

width

An integer whose value is the width of the column for
which you want to find properties. This argument is passed by
reference.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs.

Usage

Use label, alignment, and width to retrieve the properties for a
specified column.

Examples

This example uses the instance variable li_col to pass the column
number to GetColumn and retrieve the properties for the column. The script
uses SetColumn to change the column’s alignment:

See also

SetColumn


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