Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: ToText Post Reply Post New Topic
Author Message
GregInAtl
Newbie
Newbie


Joined: 30 Jun 2011
Online Status: Offline
Posts: 1
Quote GregInAtl Replybullet Topic: ToText
     Posted: 30 Jun 2011 at 2:51am
How can I get Totext to return the leading zero when converting a 2 digit number less than 10
 
Example:
ToText ({mytable.mycolumn},0) returns 4 when mycolumn= 4. I want it to return 04. mycolumn is defined as DEC(2,0)
 
If there is another alternative to Totext, that would be OK


Edited by GregInAtl - 30 Jun 2011 at 2:52am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 30 Jun 2011 at 3:28am
looking in help
 
toText({table.field},"00")
 
HTH
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum