Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing texts with missing or extra letters(words)

Status
Not open for further replies.

bor2duo

Programmer
Oct 11, 2006
2
NO
Hey all,
my problem is when I start to compare two texts with different lenght.
The point is that the texts are loaded in two RTB and I don't know how to compare them.
I found that I have to split the strings and then to compare word by word,but it's hard for me because (as default),these RTBoxes are empty and user put the texts from files.
I'll appretiate your help!
 
Have you tried using the split function?. Very good for this kind of task

myArray = split(text," ")
 
Yes.It was the first thing that I tried.But the problem is that these rtf texts files are in 2 rt boxes, and when I split them:

MyArray1 = Split (rtb1.text,"",-1,1)
MyArray2 = Split (rtb2.text,"",-1,1)

I don't know how to get result (letter by letter or word by word) from compare event.
 
? I don't think you will have much success trying to split a string using an empty one as a delimiter.

Note Denster's example included a space i.e. " " this being the normal delimiter between words in a text document.

regards Hugh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top