Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to verify to similar characters
Message
 
À
16/10/2001 18:35:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00569344
Message ID:
00569348
Vues:
21
This message has been marked as the solution to the initial question of the thread.
First I interpreted your question the same as John - and had the same answer.

Then I thought you want to sound the alarm only when all char are the same, in which case my solution would be:

?lcString = repl(subs(lcString ,1,1),len(lcString ))

>I need the fastest way to verify for similar characters in a variable. For example, I need to take action when I see a value such as "aaaaaaaa" or "bbbbbbbbbb". What's the best way to accomplish that?
Doru
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform