Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

foxpro_ spaces in the begining of the chars

Status
Not open for further replies.

gdefne

Technical User
Mar 31, 2005
4
US
hello,
I am trying to delete the spaces that are in the begining of the field value. I tried command like LTRIM but no luck. Can anybody explain to me what I might be doing wrong?
The data value in the field looks like " def ".
thx
def

 
LTRIM() should work:

REPLACE myfield WITH LTRIM(myfield)


Jim
 
If LTRIM() isn't doing it, then whatever's at the front of the string isn't spaces, but some other character. To find out what, try:

?ASC(Left(MyField,1))

Tamar
 
strtran(field,'_',"")

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Hi Def,

You could cut and paste the actual string into a post so we can look at it.

Regards,

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top