| || |
Passing a function to a function
I recently asked a question of AJ Alhait believing it would be posted here. My mistake. Hopefully, some of you will also find this information useful. The question and answer are as follows:
On Wed, 16 Jun 1999 DJGray@walldata.com wrote:
> We have found a use for the ability to have a function defined and would
> like to be able to pass that function as a parameter to another function.
> Does anyone know if SILK supports such a thing?
> boolean DoTest (boolean TheTest( ) )
> > //Some setup here
> > Return (TheTest( ) )
> > testcase Main ( )
> > DoTest (MyTest)
> > Can this be done?
Answer From: Amjad Alhait @betasoft.com>
Yes it can, if you wish to pass functions you need the @ before the name.
Let me forward this email to a friend for an exact answer.
Answer from John Green:
STRING sFunction = "Configure"
ExecuteFunction (STRING sFunctioName)