Wednesday, February 29, 2012

Skyhook International

Syntax really does matter. Rather, matter really does syntax.

I discovered this while performing operations for the Skyhook International program:
hook \ 3 = box -> incorrect
box = hook \ 3 -> correct

Confusingly, though, when you want something to appear:

Me.lblBoxAns.Text = box

Computers are confusing. But they're fun.

Tuesday, February 28, 2012

Rectangle Area

Had a momentary slip-up today when I forgot to key in Dim area As Integer (not limiting area), which confused the computer.

Also, labels are finicky. txt not text for textbox names.

Friday, February 17, 2012

System Clock

This one really stumped me. I tried to use different combinations of Me.lbl with the word TimeString incorporated but it didn't work for me. I used the Help section and found a Me.lbl.Text= "The time now is" & TimeString. By tying it to a button command, that worked for me.

I wondered if there was anything else simpler. So I consulted a few neighbors, who had used other techniques - the Timer and using Me.lblTime.Text= TimeString.

Wednesday, February 15, 2012

Lightbulb Moment

I just figured out how to change the text alignment in a single label!
Me.label.TextAlign=(choose option)

I kept on getting stuck. I thought I had to do something with "Application," but nothing showed up with IntelliSense. Then I used Me.Text (but that naturally didn't work). I finally realized that I needed to follow the formatting of the Me.Label.Text= command that we'd used in the past.

The second part to making this work was changing AutoSize to False. This allowed me to resize the label.

Onward ho to the next challenge!

Tuesday, February 14, 2012

Calculations

I forgot how to do the calculation code. Sheepish grin. So, here it goes: Choose the button, then the declaration (Click). Then type in Me.Label.Text=numbers here.