[Gambas-user] Changing the value of a variable or object outside the class

Mayost Sharon sharon at 455.co.il
Sun Apr 16 16:47:13 CEST 2023


Hello, I hope the title is correct

Further to the discussion:
https://lists.gambas-basic.org/pipermail/user/2023-April/079118.html
which ended successfully

I have a new question related to classes

I am trying to change a property of an object that is in class1 but I am inside class2

Attached is the code I am trying and it does not allow access from class2 to class1

Class 1 has an h_timer object
I want in class 2 to change the value of h_timer.Delay

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_05.zip
Type: application/zip
Size: 18881 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230416/ddf720aa/attachment-0001.zip>


More information about the User mailing list