Table of Content
HAL Forum
function string ValToString (
Val value,Integer valuetype,string thousandsep,string decimalsep,Integer cutdecimal)
Description:
Converts variable from value type to string type
Parameters:
value Value to convert
valuetype Subtype for Value Type
thousandsep Thousands separator
decimalsep Decimal Separator
cutdecimal 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:
««