Monday, September 15, 2008

(Sept 16) -- more arrays, form load events, labels, and some weird variable called a Boolean

Tuesday greetings O most exalted VB coders!
hello there, and welcome back from your weekend. Today, we are going to accomplish the following tasks:

A) create another array -- which remember, is just a collection of variables -- and this time, the array will be created OUTSIDE of any subroutine. It's not attached to any particular button or control, so it can be used by any of them

B)Create a label, which is kind of like a textbox, only its words can't be changed just by mnaully typing it in.

C) Use the "Form Load" event to set the text of that label. (You'll see, you'll see)

D) Use the View --> Code menu to get into the code; another way of getting there, rather than double clicking a button or some other control. This will also be important in accomplishing (A) above

E) Use yet another GroupBox, complete with two radio buttons, to determine whether or not a button's text says "forward" or backward"

F) create and use a Boolean variable -- one which can only have two values, either true or false. This Boolean will be linked to the two radio buttons mentioned above, and will also be used in yet another If statement to determine whether or not you will go forward or backward in seting the text of the label found in (B) above

Whew! After that, you'll have time for free exploration. Just be sure to make a Discussion posting in our Google group for whatever discoveries you may make.

Cheers,

Mr. L

No comments: