Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chopping characters
Message
De
28/06/2005 12:09:56
 
 
À
28/06/2005 11:41:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01027078
Message ID:
01027095
Vues:
19
>>Does anybody know how I can programmatically chop characters off at the first space within a value. For example if the value is Morocco Tops then I want to see Morocco and if the value is Turkish Fabric then it should say Turkish.
>>
>>Any help would be greatly appreciated
>
>Many ways really.
>
>alines(aStr, m.lcStr, .t.,' ')
>? aStr[1]
>
>*or:
>? GetwordNum(m.lcStr,1)
>
>*or:
>? iif(occurs(' ',m.lcStr)>0,left(m.lcStr,at(' ',m.lcStr)-1),m.lcStr)
>
etc
>Cetin



It wouldn't be FoxPro if it didn't have at least 3 ways to do something. :)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform