I really need some help guys!

I really need some help guys!

Postby deanomeano » Wed Nov 09, 2005 9:47 am

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.
deanomeano
 
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am

Postby Vladimir Grigoriev » Wed Nov 09, 2005 12:18 pm

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

Vladimir Grigoriev
Vladimir Grigoriev
 
Posts: 54
Joined: Fri Oct 21, 2005 10:45 am
Location: Russia, Moscow

Postby tnhoe » Wed Nov 09, 2005 5:31 pm

deanomeano,

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

Regards
Hoe
Regards

Hoe, email: easywin3@yahoo.com
User avatar
tnhoe
 
Posts: 83
Joined: Tue Nov 08, 2005 11:09 am
Location: Malaysia


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 23 guests