>}SECOND,
>}Is there a way to write functions with variable amount of parameters in
>}I4GL 4.1?
>}
>}Example
>} DEFINE message CHAR(20), totalPrice SMALLINT
>}
>} LET message="Some trash..."
>} CALL PrintAllThisStuff(message, "Hello world!", totalPrice)
>} CALL PrintAllThisStuff("Blah, blah")
>} CALL PrintAllThisStuff("OOPS! We've got ", status, " error, babe.")
Change your code to manipulate your message variable.
For example,
CASE
WHEN (...)
LET message = 'Some trash...', 'Hello world, totalPrice
WHEN (...)
LET message = 'Blah, blah, blah...'
WHEN (...)
let message = 'OOPS! We have a ', STATUS , 'error, babe!'
END CASE
CALL PrintAllThisStuff(message)
------------------------------------------
Rudy Fernandes
Gulf Insurance Co., KUWAIT
------------------------------------------