[stackoverflow] [progress Openedge Abl] How To Get Common Words From 2 Different Sentences...

Status
Not open for further replies.
S

sri

Guest
how to get common words from 2 different sentences by using ENTRY function in progress4gl ?

define variable a1 as character no-undo initial "hi dude do". define variable a2 as character no-undo initial "hi man it".

define variable cnta as character. define variable cntb as character. define variable cntc as character.

define variable i as integer. define variable j as integer.

do i = 1 to 3:

entry (i,a1,"").

do j = 1 to 3:

entry (j,a2,"").


end.

end.

/* assign cntc = cnta matches cntb . */

Continue reading...
 
Status
Not open for further replies.
Top