>What's a method and how do I say "I wan't to be able to change and show
>these variables between different windows"?
A method, AKA a function, is a block of code that can be executed from
different places. Very handy, and a major building block of all modern
programming languages! More about methods can be found in the RB
Developer's Guide.
If what you need is some data to share between windows, then you need
either a module or a class. A module allows you to define methods and
properties (among other things) that are "global" -- ie, accessible by
name from anywhere in your program. A class contains methods and
properties (among other things) as well. However, use is different. To
use a class, you must first create an instance of the class -- an object
of that class type -- using the "new" keyword. Several windows could
share one single object that provides the data you need.
You should really read the Developer's Guide. It'll cover topics like
this in more detail than we can hope to on the list.
-Thomas
Personal web page: http://home.earthlink.net/~thomasareed/
My shareware: http://home.earthlink.net/~thomasareed/shareware/
REALbasic page: http://home.earthlink.net/~thomasareed/realbasic/
Pixel Pen web pub. guide: http://home.earthlink.net/~thomasareed/pixelpen/
A fool and his money rarely get together to start with.
|