Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String to Char Array...
Message
De
03/11/2000 14:17:39
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
String to Char Array...
Divers
Thread ID:
00437794
Message ID:
00437794
Vues:
63
Hello to all!

I'm a Java and a C programmer so I'm used to seeing strings as character arrays. I was wondering if the same thing existed in FoxPro?

Basically, if I try to explain what I'm trying to do, I want to compare two strings together and return a percentage that represents how identical they both are. For this, I have to compare each of the two words letter by letter. I haven't found a better way to do this than by using the function SUBSTR() inside a FOR loop. I think that this method is not optimal (there MUST be a better way to return 1 character from a string at a specified position than SUBSTR()!).

Anyway, I must use FoxPro for this because of how fast it is with text. So I sure hope I'll find a way to run this application that'll exploit FoxPro's strengths.

Thanks a lot in advance, Stephane.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform