Code:
exec sql declare cursor1
cursor for
select number, name
from TestVraag
where gender = :gender
end-exec
display SQLcode
display sqlstate
//result can be multiple rows
exec sql open cursor1 end-exec
perform sizeTable times
exec sql fetch cursor1
into indexTableRow (:number, :gender)
end-exec
end-perform
exec sql close cursor1 end-exec
this is just simple example of how i think it would work but it doesn't, anyone wan't to help here?
the name of the destinationarray is 'table1' but i don't know where to put it
thx in advance