April 19, 2024, 07:35:42 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


4. Global Variables

Started by LarryMc, October 13, 2014, 10:46:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

If you have never used a Project then you are probably only aware of two variable scopes.

Local - the variable exist only inside the subroutine in which it is created and used. It can not be accessed from outside the subroutine.

Global - the variable is created outside of a subroutine and can be accessed from anywhere in the source file in which it is created.

With a Project we now have a 3rd scope for variables:

Project Global -The variable is defined in such a way that it can be accessed from any of the source files in the Project.

This completes 4. Global Variables
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library