Q: C-functions and RDS and global Variables
Posted in 1994
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
Hi, does anyone know how i can get the value of a 4GL global variable within a c function and the rds-system ? I don't want to do the handling with the push and pop functions . 4GL - Source: globals define t integer end globals main let t = 1 call get_write() display t ## display 2 end main C - Source included in the Runner (Example) : int get_write(i) int i ; { #ifndef RDS extern long t ; /* for the 4GE Program */ #else /* somehow get t */ long t ; /* for example this : */ t = get_some_how("t") ; /* ??????? */ #endif printf( "%d\\n" , t ) ; t = 2 ; #ifdef RDS put_some_how("t",t) ; /* ??????? */ #endif return 0 ; } Thanks in advance Achim -- /*****************************************************************************/ /* Achim Sturm */ /* Dr. Ruff Software GmbH, 52070 Aachen, Juelicherstr. 65-67, Germany */ /* phone: +49 241 91877-20 internet: asturm@ruso.ruff-software.de */