Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formating number

Status
Not open for further replies.

taree

Technical User
May 31, 2008
316
US
hi all,

how can I format the number from example 17.00 days to 17 days. I really appreciate your help.

Code:
local stringvar WorkDays;

if isNull({ADVERTISEMENT.COMPLETDAYS})  or  ({ADVERTISEMENT.COMPLETDAYS} = 0) then
     WorkDays := "Unknown" 
else   
  {ADVERTISEMENT.COMPLETDAYS} &  " Days"
 
Don't you mean to set the CompletDays to the variable WorkDays also?

local stringvar WorkDays;

if isNull({ADVERTISEMENT.COMPLETDAYS}) or
{ADVERTISEMENT.COMPLETDAYS} = 0 then
WorkDays := "Unknown" else
WorkDays := totext({ADVERTISEMENT.COMPLETDAYS},0,"") & " Days"

-LB
 
thank you LB that is what I was looking for. thank you for pointing that out for me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top