Home > Archive > Programming with dBASE > December 2005 > add function to rowset?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com