Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding spaces with AT(serchST,' ')
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00285569
Message ID:
00285572
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform