Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date Spacing Field Post Reply Post New Topic
Author Message
atonioz
Newbie
Newbie


Joined: 01 Sep 2009
Online Status: Offline
Posts: 3
Quote atonioz Replybullet Topic: Date Spacing Field
     Posted: 08 Sep 2009 at 1:19am
Hello all
 
I have a field type Datetime and i want to drop in in a specific position in a CR. I use the format field option to make 1999/1/3 00:00 show only 1999.
 
How do i make 1999 looks like 1 9 9 9 , do i need to write a formula? i searched the options but nothing...
 
sorry i m new to cr still learning the basics.
 
i want to put 1999 into |__|__|__| thats why i want the spacing between chars.
 
Many thanks
IP IP Logged
atonioz
Newbie
Newbie


Joined: 01 Sep 2009
Online Status: Offline
Posts: 3
Quote atonioz Replybullet Posted: 08 Sep 2009 at 1:50am
Nevermind i Figured it out...
 
But many have the same problem as i searched the net. Here the solution i used
 

stringvar x := totext({db.field},"yyyy");

stringvar y := "";

numbervar i;

numbervar j := len(x );

for i := 1 to j do(

y := y + x+" " );

trim( y)



Edited by atonioz - 08 Sep 2009 at 2:05am
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