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

AddColumn – PB Docs 125 – PowerBuilder Library

AddColumn – PB Docs 125

AddColumn PowerScript function

Description

Adds a column with a specified label, alignment, and width.

Controls

ListView controls

Syntax

Argument

Description

listviewname

The name of the ListView control to which
you want to add a column.

label

A string whose value is the name of the
column you are adding.

alignment

A value of the enumerated datatype Alignment
specifying the alignment of the column you are adding. Values are:

  • Center!

  • Justify!

  • Left!

  • Right!

width

An integer whose
value is the width of the column you are adding, in PowerBuilder
units.

Return Values

Integer. Returns the column index if
it succeeds and -1 if an error occurs.

Usage

The AddColumn function adds a column at
the end of the existing columns unlike the InsertColumn function
which inserts a column at a specified location.

Use SetItem and SetColumn to
change the values for existing items. To add new items, use AddItem.
To create columns for the report view of a ListView control, use AddColumn.

Examples

This script for a ListView event creates three columns
in a ListView control:

See Also


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