GetItemFormattedString
method (DataWindows)
Description
Gets and formats data whose type is String from the specified buffer
of a DataWindow control or DataStore object.
Applies to
|
DataWindow type |
Method applies to |
|---|---|
|
PowerBuilder |
DataWindow control, DataWindowChild object, DataStore |
Syntax
PowerBuilder
|
1 2 3 4 |
string dwcontrol.GetItemFormattedString ( long row, integer column {, DWBuffer dwbuffer, boolean originalvalue } ) string dwcontrol.GetItemFormattedString ( long row, string column {, DWBuffer dwbuffer, boolean originalvalue } ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to a DataWindow control, DataStore, or |
|
row |
A value identifying the row location of the string |
|
column |
The column location of the data. The datatype of the To get the contents of a computed field, specify |
|
dwbuffer (optional) |
A value of the dwBuffer enumerated datatype |
|
originalvalue (optional) |
A boolean indicating whether you want the original or
If you specify dwbuffer, you must also |
Usage
Use GetItemFormattedString in place of GetItemString when you want
to return the value from a column in its current display format. This is
especially useful if the column in question is not a computed
column.
Examples
These statements set LName to the current string in the primary
buffer for row 3 of in the column named emp_name in the DataWindow
dw_employee. The retrieved value is formatted with the display format of
the column:
|
1 2 |
String LName LName = dw_employee.GetItemFormattedString(3, "emp_name") |
See also