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...
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...