Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word+word
Message
From
06/04/2005 07:07:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/04/2005 06:59:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 6
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01001807
Message ID:
01001811
Views:
12
>hi all,
>i try to get result as if thisform.text1.value=drive , i want to add "ed" to be
>like "driveed",
>
>i try as under
>thisform.text2.value=ltrim(thisform.text1.value)+("ed")&& i get it as
>"drive       ed"
>
ltrim() removes spaces from the left, but you need to remove spaces from the right. That is why in this case you might use rtrim() (remove spaces from the right), or alltrim() (remove spaces from both left and right).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform