EditWord class | QSYS API Reference Guide
Estimated reading time: 2 minutes
Provides methods to format numeric values according to Edit Word
Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll
Inheritance: Object
Remarks
Provides support to give presentation to numeric fields according to IBM i Edit Word formatting rules.
Methods
Signature | Description |
---|---|
Apply(Decimal, Int32, Int32, String) | Gets a string value representing the given numeric value after formatting it according to an Edit Word |
ApplyEditWord(String, String, Char, Char, Char, Boolean) | Gets a string value representing the given numeric value after formatting it according to an Edit Word |
string Apply(decimal numeric, int decimals, int length, string editwordString)
Gets a string value representing the given numeric value after formatting it according to an Edit Word
string Apply(decimal numeric, int decimals, int length, string editwordString)
Parameters
Type | Parameter name | Description |
---|---|---|
Decimal | numeric | input numeric value |
Int32 | decimals | field decimal positions |
Int32 | length | field length |
String | editwordString | Edit Word |
Returns
Type | Description |
---|---|
String | the formatted value as string |
string ApplyEditWord(string editwordString, string valueString, char decimalPoint, char thousandSeparator, char currencySymbol, bool printCurrencySymbol)
Gets a string value representing the given numeric value after formatting it according to an Edit Word
string ApplyEditWord(string editwordString, string valueString, char decimalPoint, char thousandSeparator, char currencySymbol, bool printCurrencySymbol)
Parameters
Type | Parameter name | Description |
---|---|---|
String | editwordString | input Edit Word |
String | valueString | input value in a string |
Char | decimalPoint | decimal point symbol |
Char | thousandSeparator | thousands separator symbol |
Char | currencySymbol | currency symbol |
Boolean | printCurrencySymbol | currency symbol |
Returns
Type | Description |
---|---|
String | the formatted string |