Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding spaces with AT(serchST,' ')
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00285569
Message ID:
00285572
Views:
19
>I have the unpleasent task of moving data from an old flat access table into normalised tables. I need to get two parts out of a string into one field each.
>
> old value m.namestr = "John Doe"
> into first_name and last_name
> spc = ' '
> place = AT(m.namestr, spc,1)
> place always = 0, which makes it hard to submit as an argument to SUBSTR()
>
>Thanks in advance for your help.

Swap your first two parameters to the AT() function around.

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform