Function by Default (OpenInsight Specific)
At 03 JAN 2001 10:39:33AM LB wrote:
I need to know how is the format of a function that is called in the Default Property and what is the way to call it.
At 03 JAN 2001 04:55PM Donald Bakke wrote:
LB,
I assume you are trying to create a function that will return a value to be used as the default information for a control.
Just enter the function name and any parameter in the Default field of the control's Property window like this:
FunctionName(Param1, Param2, etc.)
Note that I am not specifing a return value therefore the above is entered like an embedded function, which looks like a subroutine syntax. Typically we create a single function for one window. We set the first parameter to be the name of the control so we can branch within the function itself (like a commuter module).
The function itself is structured like any normal function. Whatever you return as a value will be used by the control as the default value.