Hi..I am using CR9 and I have the following formula in my report:
WhilePrintingRecords;
StringVar Data;
if {INVENTORY.ID_CODE}='TS4' then
if IsNull({INVENTORY.ID_NUM}) then
Data := "None" Else
Data := totext({INVENTORY.ID_NUM})
If INVENTORY.ID_NUM is a single digit value like 1, 2, 3, or 4, then Data returns the value correctly but if INVENTORY.ID_NUM has a decimal in it, 0.1, 0.2, etc, then the Data returns some ambigious value. Is there something I need to do to convert decimals before using totext to convert it to a string?
Thank you...
WhilePrintingRecords;
StringVar Data;
if {INVENTORY.ID_CODE}='TS4' then
if IsNull({INVENTORY.ID_NUM}) then
Data := "None" Else
Data := totext({INVENTORY.ID_NUM})
If INVENTORY.ID_NUM is a single digit value like 1, 2, 3, or 4, then Data returns the value correctly but if INVENTORY.ID_NUM has a decimal in it, 0.1, 0.2, etc, then the Data returns some ambigious value. Is there something I need to do to convert decimals before using totext to convert it to a string?
Thank you...