[Gambas-user] Using a class as a function

Fabien Bodard gambas.fr at ...626...
Tue Nov 5 12:34:38 CET 2013


In your class :

Public sub _Call(value as whatyouwant) as whatyouwant

End

With that you can do

Print Myclass(value)
Le 5 nov. 2013 12:10, "Bruce" <bbruen at ...2308...> a écrit :

> I saw an example of how to do this only yesterday.
> Do you think I can remember where? No.
>
> Any clues?
> Bruce
>
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models.
> Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and
> register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list