D
Depez
From a module I call a public function named Test with the name of a
form (named 'testformname') as a parameter
like this:
Test("testformname")
In the (public) test function I would like to use the passed var to
add items to a control named 'Control01'.
The function Test looks like:
public function test(Formvar)
Formvar.Control01.AddItem ("bla")
...
etc
The Formvar should be replaced by the value it contains.
So it would actually perform: testformname.Control01.AddItem ("bla")
This doesn't work but how do I get this to work?
I found some answers in different groups telling to define the var as
type form: public function test(Formvar as Form)
This doesn't work (error, form is an undefined type).
Thanks.
form (named 'testformname') as a parameter
like this:
Test("testformname")
In the (public) test function I would like to use the passed var to
add items to a control named 'Control01'.
The function Test looks like:
public function test(Formvar)
Formvar.Control01.AddItem ("bla")
...
etc
The Formvar should be replaced by the value it contains.
So it would actually perform: testformname.Control01.AddItem ("bla")
This doesn't work but how do I get this to work?
I found some answers in different groups telling to define the var as
type form: public function test(Formvar as Form)
This doesn't work (error, form is an undefined type).
Thanks.