Hello LucaMS,
Thanks for your explanation!
I understand that in object oriented programming, you should "hide" everthing that is in a class.
In my example I am violating these rules.
I think I made the mistake, I try to put a structure in my code, so the Main module don't get too big. (Losing overview or scroll in code too much)
I assume that is better to use a code module (Am I right??) in that case then creating a class, where you should work with get and set properties and the CallSub methods.
The problem that I have is that I need to pass a lot info from the GUI (All my objects on the GUI are in the Main module declared and accessed) to my class, then I need to create a lot of CallSub routines, so my code gets again less efficient.
In my Question 3, I don't understand very well, what a CallSub is doing exacly. Is it a "delegate" and "event" like in vb .net?
In the video of Erel, about the modules and classes, he also talks about the CallsubDelayed.
In the forum I found the following explanations:
-Callsub = calling a sub, where you can pass data and get the result in return. The program is waiting for the answer/the result in this case.
-Callsub delayed = calling a sub where you can pass data and get nothing back. The program continues and the call is done after that routine is finished.
2 - no, che calls will be queued (*)
So can I assume, that the Callsub delayed has nothing todo with multi threading, but only pushes the event in the queu, instead of doing that task immediatly?
Is gives another "priority" to that sub?
Thanks in advance,
And my apologies for my newbie questions.
Kind regards,
Coldrestart.