}
} }Is it possible to create a C4gl function that will accept a variable number
} }of arguments, in a similar fashion to the way that the VARARGS works in C.
}
} } let l_str = str_cat("one", "two", "three")
} } let l_str = str_cat("one", "two")
}
} }I have the code for the function str_cat() below. The problem is that C4gl
} }complains at compile time error -4333 the second call has a different
} }argument count to the first.
}
} }Whilst the function can be called with varying arguments this must be done
} }in a separate module - not very useful.
}
} In Version 4.12 and later, the -z flag is supported by both fglpc and c4gl.
} In earlier versions, the underlying programs support -z, but the c4gl script
} didn't; you'd have to add support for it, and arrange to pass the -z flag to
} the fglc process.
}
} Yours,
} Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
}
On a second thought, don't stored procedures allow a variable number of
arguments? I seem to remember that they put default values in blank ones.
j.
_____________________________________________________________________________
Jack Parker - Hewlett Packard, BSMC Boise, Idaho, USA
jparker@hpbs3645.boi.hp.com
_____________________________________________________________________________
He who lives by the keyboard, dies by the keyboard. >thud<
_____________________________________________________________________________
Any opinions expressed herein are my own and not those of my employers.
_____________________________________________________________________________