GetItemFormattedString method (DataWindows)
Description
Gets
and formats data whose type is String from the specified buffer
of a DataWindow control or DataStore object.

component
Separate method names, GetItemFormattedStringByColNum, GetItemFormattedStringByColNumEx,
and GetItemFormattedStringEx, are provided as
alternative syntaxes for the Web DataWindow server component, which
cannot use overloaded methods.
Controls
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control, DataWindowChild object, DataStore |
Web |
Server component |
Web ActiveX |
DataWindow control, DataWindowChild object |
Syntax
[PowerBuilder]
1 |
string <span>dwcontrol</span>.<span>GetItemFormattedString</span> ( long <span>row</span>, integer <span>column</span> <br> {, DWBuffer <span>dwbuffer</span>, boolean <span>originalvalue</span> } )<br>string <span>dwcontrol</span>.<span>GetItemFormattedString</span> ( long <span>row</span>, string <span>column</span> <br> {, DWBuffer <span>dwbuffer</span>, boolean <span>originalvalue</span> } ) |
[Web DataWindow server component]
1 |
string <span>dwcontrol</span>.<span>GetItemFormattedString</span> ( long <span>row</span>, string <span>column</span> )<br>string <span>dwcontrol</span>.<span>GetItemFormattedStringByColNum</span> ( long <span>row</span>, <br> short <span>column</span> )<br>string <span>dwcontrol</span>.<span>GetItemFormattedStringByColNumEx</span> ( long <span>row</span>,<br> short <span>column</span>, string <span>dwbuffer</span>, boolean <span>originalvalue</span> )<br>string <span>dwcontrol</span>.<span>GetItemFormattedStringEx</span> ( long <span>row</span>, string <span>column</span>,<br> string <span>dwbuffer</span>, boolean <span>originalvalue</span> ) |
[Web ActiveX]
1 |
string <span>dwcontrol</span>.<span>GetItemFormattedString</span> (number <span>row</span>, <br> number <span>column</span>, number <span>dwbuffer</span>, boolean <span>originalvalue</span> )<br>string <span>dwcontrol</span>.<span>GetItemFormattedString</span> ( number <span>row</span>, <br> string <span>column</span>, number <span>dwbuffer</span>, boolean <span>originalvalue</span> ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to a DataWindow control, |
row |
A value identifying the row location |
column |
The column location of the data. The To get the contents of a computed field, specify the name |
dwbuffer (optional) |
A value of the dwBuffer enumerated datatype |
originalvalue (optional) |
A boolean indicating whether you want
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 |
String LName |
1 |
LName = dw_employee.<span>GetItemFormattedString</span>(3, "emp_name") |