08-15-2013, 04:57 PM
Hi Gintaras,
as posted in BitDuJour, i struggle with a project now.
I want to be more informed about a special case:
I have a toolbar linked to a program.
This toolbar contains several macros in it (5 at the moment).
1) The first function in toolbar collects datas from the program interface (some texts, some buttons coordinates etc etc).
What is correct way to have those variables initialized when i launch the first macro or function, and then make them available for
*any* macros involved in the toolbar only, and not others?
2) How to declare a variable that can't be modified after (some static thing)
3) how to declare variable that can be modified by any other macros/functions?
4) can I reset the variables by running the first macro again, or is it mandatory to restart the toolbar?
5) how QM handle memory for those specific variables once I close the linked program or the toolbar? automatic or I must write some cleaning code?
Thanks,
laurent
as posted in BitDuJour, i struggle with a project now.
I want to be more informed about a special case:
I have a toolbar linked to a program.
This toolbar contains several macros in it (5 at the moment).
1) The first function in toolbar collects datas from the program interface (some texts, some buttons coordinates etc etc).
What is correct way to have those variables initialized when i launch the first macro or function, and then make them available for
*any* macros involved in the toolbar only, and not others?
2) How to declare a variable that can't be modified after (some static thing)
3) how to declare variable that can be modified by any other macros/functions?
4) can I reset the variables by running the first macro again, or is it mandatory to restart the toolbar?
5) how QM handle memory for those specific variables once I close the linked program or the toolbar? automatic or I must write some cleaning code?
Thanks,
laurent