RE: 4gl / c interface
Posted in 1995
Sanjay, Off the top of my head, I can think of three possible approaches: 1. Have the esql/c function place its results in a temporary table. It could then return a value to the 4GL program indicating the table should be checked. 2. Have the esql/c function place its results in a global static array. Accessing a global 4GL array from "C" is tricky but can be done. 3. Write the esql/c function to behave like a cursor. By using static "C" variables, the function can retain some knowledge of its previous work. It could then return one row each time its called. Take your pick! Or, I'm sure there are still other ideas... --Craig (craig@chemistry.utah.edu) >Is there a way for me to return multiple rows of data from an ESQL/C >function to a 4gl program. I am defining a static array of certain size >in the 4gl program . Is there any way I can return multiple >rows ?