General information
Category:
Coding, syntax & commands
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only