Quote:KiZ I tried looking over it but really couldnt gather anything about it. Can anyone care to explain to me how to go around it. I got the concept Idea but cant implement it..
These are all taken from the FB help file...
- MID returns a string containing the characters from the text string, starting at start, length characters long.
MID[$](text, start[, length])
INSTR function returns the position in the string subject for the first occurence of the string search.
INSTR( [start,] subject, search )
LEN will return the length of a variable or DataType. If the variable is a string, it will return the length in characters. Otherwise, it will return the number of bytes.
LEN(Text$)
If our scrambled word is "ATC" and the word we wish to compare it to is "CAT" then
Our Dictword is "CAT" and our Srambword is "ATC"
First we check the length of both words to make sure they are the same length (If they are not then they are not the same word!)
LEN Command
then we do a simple loop based on the length of our DictWord "CAT"
FOR X = 1 to length of DictWord
We do a simple comparison...
If "C" from the DictWord is in the Scrambword then we remove the "C" from the DictWord.
We keep doing that until we have gone through as many letters as the length of the DictWord contains.
Use INSTR and MID
If "C" is in "ATC" then "CAT" = "AT"
If "A is in "ATC" then "AT" = "T"
If "T " is in "ATC" then "T" = ""
If our Dictword = "" (Blank) then you can build that word from the scrambled word.