Dear Cutpen,
If the field is a number field the following will work:
umberVar T := 1845; //change to your field
NumberVar H := tonumber(left(totext(t),2));
NumberVar M := tonumber(totext(t) [3 to 4]);
time(h,m,0)
//field will be returned as time. After placing on report
//right click and choose format field and select the format
//you want.
If the field is a string, then the following will work:
StringVar ST := '1845'; //change to your field
NumberVar H := tonumber(left(ST,2));
NumberVar M := tonumber(ST [3 to 4]);
time(h,m,0)
//field will be returned as time. After placing on report
//right click and choose format field and select the format
//you want.
I am sure there is probably an easier way, but that works.
Best,
ro
Rosemary Lieberman
rosemary-at-microflo.com,
Microflo provides expert consulting on MagicTSD and Crystal Reports.
You will get answers more quickly if you read this before posting: faq149-3762