Re: 4GL Cursors again
Posted in 1997
Margus, If all your prepare statements use 'prepare l6pp_lause' then you will get the 4371 error. I'm using 4GL 6.00 and receive the same error if the prepare statement is not unique as well as the declare statement. Try=20 renaming your prepare statements. --- ,-, |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| =3D=3D=3D= =3D=3D=3D=3D ___|| | | ----- //_ || | CANNON EXPRESS | ---- ,-----'| ~ | | | -- |o-----|__ |--`=3D=3D=3D=3D=3D=3D_______________________________=3D=3D=3D= =3D=3D=3D___| ~~~~~~~~ `-(*)--=3D=3D=3D~~~~~~(*)(*)| (*)(*)| ------= - ------------------------------------------------------------------------- Joseph Cullipher |E-mail: joseph@cannonexpress.com PO Box 364 |opinions express are those of my own and Springdale, AR 72764 USA |don't necessarily reflect those of my company ------------------------------------------------------------------------- On Mon, 31 Mar 1997, Margus [iso-8859-1] V=E4li wrote: } hi there }=20 } 4gl 4.20 wd1: got 4 cursors in one module, different names and all, } and the error file looks as follows. Could anyone please point } out what's wrong with it? }=20 } function raport_ajal() } . } . } . } prepare l6pp_lause from sel_lause -- teeme executable SQL lause } declare k_ajal cursor for l6pp_lause } . } . } . } end function }=20 }=20 } function raport_ajak() } . } . } . } prepare l6pp_lause from sel_lause -- teeme executable SQL lause } declare k_ajak cursor for l6pp_lause } |=20 } | Cursors must be uniquely declared within one program module. } | See error number -4371. } . } . } . } end function }=20 } on and on 2 more times like this (got 4 functions containing } curson declarations, l6pp_lause is a local scope char variable) }=20 } thanks for your time, } mv }=20