Re: 4GL question
Posted in 2005
Bill Dare said: > I have a question regarding values returned by a C function called from > a 4GL program. The following is from the 4GL Reference Manual: > > mint nxt_bus_day(mint nargs); > . > . > . > ibm_lib4gl_returnDate(theDate); /* stack result */ > return(1) /* return count of stacked */ > > If I call this function as: > > LET count = CALL nxt_bus_day(currentDate) RETURNING nxt_business_day > > Would I expect the following results? > > count = 1 > nxt_business_day = theDate Pedantically, no. The C calling mechanism uses a stack, you would need to use push_<datatype> and pop_<datatype> functions to pass and return variables. -- Bye now, Obnoxio "C'est pas parce qu'on n'a rien ' dire qu'il faut fermer sa gueule" - Coluche A smile is a gift that is free to the giver and precious to the recipient. But giving someone the finger is free too, and I find it more personal and sincere. sending to informix-list