Property Value

Computer Programming class learned a minor (but important) point today. The goal was to create a group of radio buttons that would change the value of a few labels. They all started by setting the label value in the property box but then had to re-enter the data in the code for the appropriate button.
As one student said, "It scares me, if it's not there." So I had him erase the property value and run the program with an empty label. Of course it worked. So what started as practice with radio buttons turned out to be a lesson on the difference between property values and values attributed in the code.

Comments

Popular Posts