SetTabOrder method (DataWindows)
Description
Changes the tab sequence number of a column in a DataWindow
control to the specified value.
Controls
|
DataWindow type |
Method applies to |
|---|---|
|
PowerBuilder |
DataWindow control, DataWindowChild object |
|
Web ActiveX |
DataWindow control, DataWindowChild object |
Syntax
[PowerBuilder]
|
1 |
integer <span>dwcontrol</span>.<span>SetTabOrder</span> ( integer <span>column</span>, integer <span>tabnumber</span> )<br>integer <span>dwcontrol</span>.<span>SetTabOrder</span> ( string <span>column</span>, integer <span>tabnumber</span> ) |
[Web ActiveX]
|
1 |
number <span>dwcontrol</span>.<span>SetTabOrder</span> ( number <span>column</span>, number <span>tabnumber</span> ) <br>number <span>dwcontrol</span>.<span>SetTabOrder</span> ( string <span>column</span>, number <span>tabnumber</span> ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to a DataWindow control or |
|
column |
The column to which you are assigning |
|
tabnumber |
The tab sequence number (0 – 9999) you |
Return Values
Returns the previous tab value of the column if it succeeds
and –1 if an error occurs. If any argument’s value
is null, in PowerBuilder and JavaScript the method returns null.
Usage
You can change a column in a DataWindow object to read-only
by changing the tab sequence number of the column to 0.
Examples
This statement changes column 4 of dw_Employee
to read-only:
|
1 |
dw_Employee.<span>SetTabOrder</span>(4, 0) |
These statements change column 4 of dw_employee
to read-only and later restore the column to its original tab value
with read/write status:
|
1 |
integer OldTabNum |
|
1 |
// Set OldTabNum to the previous tab order value |
|
1 |
OldTabNum = dw_employee.<span>SetTabOrder</span>(4, 0) |
|
1 |
... // Some processing |
|
1 |
// Return column 4 to its previous tab value. |
|
1 |
dw_employee.<span>SetTabOrder</span>(4, OldTabNum) |