| || |
SilkPerformer 2.5 Function Question
I was wondering if you knew how to pass a function a variable then have the function return a value? I've looked in the books and on-line help with out much success.
Basically I want to pass the name of a file to the function. The function will do some processing then return a value. I'm specifically looking for
1.) How to declare the function in the ''dclfunc'' section
function SelectFile (sTempFileName : string) : string
function SelectFile (sTempFileName : string)
2.) How to call the function from the transaction.
sTestVar := SelectFile (sTestFileName);
3.) How do you declare a variable OPTIONAL when passing it to a function.
I would greatly appreciate a code example if possible....
Re: SilkPerformer 2.5 Function Question
This is in the online help for SilkPerformer 2.5. Look in the Help Index for:
All your questions are answered there.