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

Discussão em 'StackOverflow' iniciado por fdantas, Novembro 14, 2016.

  1. fdantas

    fdantas Administrator Moderador

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

Compartilhe esta Página