Re: 4GL: How to access a global array from a C function
Posted in 1997
Richard, the easiest thing you can do is have the esql/c code call a 4gl function that stores values in the array. On your 4gl supplement FM, have a look at page S-201. HTH, Marco _______________________________________________________________________________ Marco Greco, Catania, Italy marcog@linux.ctonline.it rem radioterapia +39 95 447828 fax 446558 Informix faq http://www.iiug.org/techinfo/faq/informix.htm 4glworks http://www.ctonline.it/~marcog Informix on Linux http://www.ctonline.it/~marcog/ifmxlinux.htm Richard Spitz wrote: } } Dear Informixers, } } is there a way how I can access a global 4GL array (array[xxx] of } RECORD) from a C function? } } I have a 4GL program that queries data from a remote SAP system. The } SAP access is presently done through a function in an ESQL/C program } that inserts the data records into an Informix table. When the } function returns successfully, the 4GL program will select these } records into its global array for further processing. Needless to } say, the number of records can vary with every function call. } } I'd like to skip the insert/select part and pass these records } directly back to the 4GL program. Is there a solution? } } I'm working with 4GL 4.10 on SINIX 5.42. } } Regards, Richard } -- } +--------------------------+------------------------------------------+ } | Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | } | EDV-Gruppe Anaesthesie | Tel : +49-89-7095-3413 | } | Klinikum Grosshadern | FAX : +49-89-7095-8886 | } | 81366 Munich, Germany | GSM : +49-172-8933578 | } +--------------------------+------------------------------------------+