Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Alec Chattaway — — source: Informix-list mailing list archive (1991-1998)
blesmana@waikato.ac.nz writes:
: How do we write a variable parameter to a function
: example (written as Procedure in Pascal)
: Procedure dummy (arg1 : Mytype
: var argV : OtherType
: var argC : OtherType)
: begin
: bla bla bla
: argV := [someValue]
: argC := [otherValue]
: end
Not realy sure what you mean (not a Pascal programmer!, if you just want to
pass parameters then:
function fred( var_1, var2 )
if var1=23
beep 1
end if
if var_2="fred"
beep 2
end if
end function
if you want to pass a valiable number of parameters then you will have
to devise your own function for doing this. You will have to pass the
function a string containing the neccessary values etc and some method
of determining each type. In effect this method is not supported.
: Does SPL have Procedure facilty ?? or a function that has to be converted
: to do a procedure job ??
No, only functions!
Chatty
~~~~~~
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.