Hi! Confirmed on Gambas2 and Gambas3. Code:
Dim tmp As New Class1 With tmp .y = 0 tmp = funcx() Debug .y Debug tmp.y End With Public Function funcx() As Class1 Dim test As New Class1 test.y = 1 Return test End Output of debug is; 0 1 I think .y and tmp.y should be same! Regards, Jussi ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user