Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple string question
Message
From
20/09/2000 17:48:50
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgia, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00418746
Message ID:
00418766
Views:
32
>>mval3=substr(mval2,1,at(' ',mval2))


>>Here is error - you wll have 'ABC ', not 'ABC'
>>'left' function better here.

Vlad is correct about the space.

left can work as could

mval3=substr(mval2,1,at(' ',mval2)-1)
or
mval3=alltrim(substr(mval2,1,at(' ',mval2)

Lots of ways to skin a cat... which is "better" who knows? < vbg >
Tom Gahagan
Alliance
Computer Solutions

"Music, like sex, is much too important to be left to professionals."
Robert Shaw
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform