Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String parsing
Message
De
14/10/1999 02:24:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00273042
Message ID:
00276207
Vues:
46
>Hi Cetin,
>
>>> Could you extend it to use any Delimiter?
>>
>>
Yes I could. But I have other fll code doing it. It parses with parameters such as
>>-Upper,lower, mixed
>>-lTurkishFix or not (Effects a few char)
>>-Delimiters
>>-Sort or not
>>-Unique words or not (ie: a dictionary indexing)
>>
>>I use this one just to parse my listtype strings. "ObjectName1, ObjectName5, ObjectName8..." so I could easily parse the string and process elements.


>
> I found that your program can not recognize some characters, for example:
> =list2aRRAY("SIMONDS FRANK H =JR & DEBORAH A =JR", "LaString"," ")
> gives 8 elements, but laString[8]=.f. and laString[4]="JR" instead of "=JR" ,
> so, your code isn't suitable for my goal. Could you please help me to change it appropriately?


Nadya,
In that routine I used __iscsym() to get words. It returns nonzero for letters, digits and underscore. Instead you might want to use isprint(), isascii() etc.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform