Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
String to Char Array...
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement