Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - Stripping spaces out of text.
Message
From
01/04/1997 15:20:38
 
 
To
01/04/1997 15:08:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00026447
Message ID:
00026454
Views:
31
>>How do you strip spaces out from a field value.
>>
>>alltrim(thisform.myfiled.value).. the value is 'modem'
>>
>>when I say..
>>
>>myvar = alltrim(thisform.myfiled.value)
>>
>>myvar is 'modem' but is has two more spaces in it.
>>
>>should have 5 spaces, but it has 7 spaces.
>>
>>what to do?
>
>Come on, ALLTRIM will always trim all heading and trailing spaces.

my code is..
SELECT * FROM mytable;
WHERE UPPER(ALLTRIM(THISFORM.fld.VALUE)) $ table_fld

this does not work..but it will work if I...

WHERE upper('modem') $ table_fld.

why?
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform