[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Global Variable
[Thread Prev] | [Thread Next]
- Subject: Re: Global Variable
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Thu, 19 Feb 2026 11:06:27 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 19/02/2026 à 10:40, Gianluigi a écrit :
Sorry, Benoit, you need to please resolve a forum discussion.I maintain that in Gambas, unlike other languages, there is no such thing as a global variable (i.e., a variable you can access anywhere in the project by name alone). Global Variables exist only at the module (or class) level. A Global Variable in Gambas can be Static, Private (visible everywhere but only in the module where it was declared), or Public (visible everywhere in the project). If the Global Variable is Public (being at the module level), if called in another class or module, it must be preceded by the name of the module in which it was declared.Am I mistaken or missing something? Thanks for your attention. Regards Gianluigi
It seems right to me. What could be the matter of arguing about that? -- Benoît Minisini.
| Re: Global Variable | Gianluigi <gradobag@xxxxxxxxxxx> |
| Global Variable | Gianluigi <gradobag@xxxxxxxxxxx> |