Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing blanks in a field
Message
From
21/12/2004 11:20:00
 
 
To
21/12/2004 10:11:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00970912
Message ID:
00971025
Views:
23
>so how about
>
>SELECT STRTRAN(fieldname," ","")+SPACE(nn-LEN(ALLTRIM(fieldname))) AS fieldname FROM tablebname
>

How about m.nn = fixed field length for fieldname
m.nn = len(tablename.fieldname)
SELECT PADR(STRTRAN(fieldname," ",""),m.nn) AS fieldname FROM tablebname
Previous
Reply
Map
View

Click here to load this message in the networking platform