[Gambas-user] more static class confusion

Leo Barnhoorn leo.barnhoorn at ...246...
Sat Nov 8 09:57:47 CET 2003


Hallo Rob,

I hoop this is what you are loking for.

Regards,
Leo.


On Friday 07 November 2003 13:38, Rob wrote:
> OK, so I converted my Loan class to not use any static methods,
> and changed my little example form to instantiate a copy of Loan
> like so:
>
> PUBLIC Loan as Loan
>
> and then in the form_open (or another sub)
>
> Loan = NEW Loan
>
> When Gambas reaches this line, it dies with "Class 'Loan' is
> static".  If I leave it out, I get "Null object" when I try to
> use Loan's methods, naturally.  If I leave out the PUBLIC Loan
> as Loan declaration as well, I get "Loan.[method] is not static"
> when it tries to run one of the methods.
>
> Changing PUBLIC Loan as Loan to DIM Loan as Loan (in a method)
> doesn't help either.  I even rm -rf'ed my .gambas subdirectory
> of the project and grepped for the word static, and nothing
> turned up.  What am I doing wrong?
>
> The (new) offending version of the project is at
>
> http://www.kudla.org/Finance-dynamic.tar.gz
>
> Rob
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Finance-GUI.tar.gz
Type: application/x-tgz
Size: 587 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20031108/675339c0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Finance-USE.tar.gz
Type: application/x-tgz
Size: 1240 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20031108/675339c0/attachment-0001.bin>


More information about the User mailing list