( |
|
|
|||
Converts variable from value type to string type |
Parameters: | |
Value to convert | |
Subtype for Value Type | |
Thousands separator | |
Decimal Separator | |
1 - cuts decimals, 0 - with decimals | |
global function string 255 ConvertValToString(val amount) begin string 255 tstr; record SysFormatBlock SysFormatRec; BlockLoad(SysFormatRec); tstr = ValToString(amount,M4Val,SysFormatRec.thousSep,SysFormatRec.decimalPt,0); ConvertValToString = tstr; return; end;
Related topics: |