Hello all:
I am working on a little math puzzle, and wanted to get your advice. Please see the attached picture. The idea right now is this: The player will click on a number from each column to set the value for three different numbers. I am using 3 variant variables (column1, column2 and column3) to establish the value of the three numbers by the square the player clicks on. For example, if the player clicks on the 2 in the first column, the first column value = 2. On each of the hotspots, I have coded in the ADVANCED tab of the hotspot properties (this is the code from the second hotspot on the leftmost column):
column1 = 1
I also have established a variant variable (prod) to calculate the product of the three numbers selected. If the three numbers selected are 2, 2 and 1, the product is 2x2x1 = 4. As stated, this is housed in another variant variable. When I coded it, it reads:
prod = column1*column2*column3
Is there a way to have the program display the product on the screen? In the picture, I'm trying to have it end up in the brown box. If the product (prod) is 8, I want it to update automatically and show that number in the brown box. I've looked through the VBS references on the site, and can't figure out a way to do this.
In debugging, the column1, column2 and column3 variables seem to be working, but not the prod variable. I'm not sure if this is related to my concern, but thought it was relevant to mention.
Thank you!