I really need some help guys!

Post Reply
deanomeano
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am
Contact:

I really need some help guys!

Post 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)
Last edited by deanomeano on Fri Nov 11, 2005 1:02 pm, edited 1 time in total.
Vladimir Grigoriev
Posts: 54
Joined: Fri Oct 21, 2005 10:45 am
Location: Russia, Moscow
Contact:

Post by Vladimir Grigoriev »

Maybe you should use function PAD[R]?
For example
MyVar := PADR( MyVar, TARGET_LENGTH ) // #DEFINE TARGET_LENGTH

Vladimir Grigoriev
User avatar
tnhoe
Posts: 83
Joined: Tue Nov 08, 2005 11:09 am
Location: Malaysia
Contact:

Post by tnhoe »

deanomeano,

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

Regards
Hoe
Regards

Hoe, email: easywin3@yahoo.com
Post Reply