Page 1 of 1

I really need some help guys!

Posted: Wed Nov 09, 2005 9:47 am
by deanomeano
Hi, im new to this, havent had much experience and have come across a slight problem. im writing a program where i need to pad certain fields with trailing zeros, as the field will have values of varying length, but i have no idea how to do this, so any help would be great!

Thanks all. :oops:

(edit:Problem all sorted now, thanx for the help)

Posted: Wed Nov 09, 2005 12:18 pm
by Vladimir Grigoriev
Maybe you should use function PAD[R]?
For example
MyVar := PADR( MyVar, TARGET_LENGTH ) // #DEFINE TARGET_LENGTH

Vladimir Grigoriev

Posted: Wed Nov 09, 2005 5:31 pm
by tnhoe
deanomeano,

Your can use padr(), padl().
Plz provide sample data for others to help.

Regards
Hoe