Quote:
> Hi,
> I'm new to real basic.
> I'm used to programming in foxpro Etc,but don't understand how to have
> global variables
> I have an number of methods to read/write adatabase to the screen, but
> must maintain a global data area.
> E.G
> I read the database of supplier names into the list on screen, but then
> must maintain an array/collection of supplier indexes.
> which are then used to find the supplier invoices once a supplier is
> selected.
> I've tried defining the arrays in the open event of the screen, but when
> it exits, I loose the global defs ( of course!).
> is there no event loop in real basic, so that you can define the globals
> but maintain them whilst the window is open?
> THANKS
> steve
Page 112 of Language Reference.
Create a module and every variable created with Dim is a global variable.
I am also new not only in RB but in programming as such. It is a
headache but so much fun.
Regards
Alex
--
Just for fun:
http://homepage.mac.com/ZorbasAlex/show.html