| Author |
add function to rowset?
|
|
| mike ovell 2005-12-15, 8:23 pm |
| Is it possible to add a function to a rowset.
I've tried for example...
with (this.rowset)
myFunction = CLASS::MYFUNCTION
endwith
Then I'd tried calling the function...
form.rowset.myFunction()
Is it possible and if so how?
Thanks in advance!!
Mike Ovell
| |
| mike ovell 2005-12-15, 8:23 pm |
| Gee...figured it out already...
The function is in the Query class not the Rowset class !
So to call it...
form.rowset.parent.myFunction()
Works like a charm...but thanks for being there!!!!
| |
| Bruce Beacham 2005-12-18, 3:23 am |
| mike ovell wrote:
> Is it possible to add a function to a rowset.
> I've tried for example...
>
> with (this.rowset)
> myFunction = CLASS::MYFUNCTION
> endwith
FWIW you cannot add new properties to an object with a WITH block, you
can only amend properties that already exist. To create a property you
have to use:
this.rowset.myfunction = class::MYFUNCTION
Bruce Beacham
|
|
|
|