InsertColumn PowerScript function
Description
Inserts a column with the specified label, alignment, and
width at the specified location.
Controls
ListView controls
Syntax
|
1 |
<span>listviewname</span><span>.InsertColumn</span> ( <span>index, label, alignment, width</span> ) |
|
Argument |
Description |
|---|---|
|
listviewname |
The name of the ListView control to which |
|
index |
An integer whose value is the number |
|
label |
A string whose value is the name of the |
|
alignment |
A value of the enumerated datatype Alignment
|
|
width |
An integer whose value is the width of |
Return Values
Integer. Returns the column index value
if it succeeds and -1 if an error occurs.
Usage
You can insert a column anywhere in the control. If the index
you specify is greater than the current number of columns, the column
is inserted after the last column.
Examples
This example inserts a column named Location, makes
it right-aligned, and sets the column width to 300:
|
1 |
lv_list.<span>InsertColumn</span>(2 , "Location" , Right! , 300) |