Variable String ButtonName1
ButtonName1 = "Test1"

Button 1 Label ButtonName1
Button 2 Label "Button2"
Button 4 Label "Button4"
Button 5 Label "Button5"
Button 6 Label "Button6"
Button 7 Label "Button7"
Button 8 Label "Button8"
Button 9 Label "Button9"
Button 11 Label Test1
Button 12 Label Test2

For v1 = 0 To 9e99
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next

Stop
'-----------------------------------------
'----------------------------

Label Test1
	Beep
	Wait Seconds 1
Return

Label Test2
	Beep
	Wait Seconds 1
Return


For v1 = 0 To 100
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Button7 Text "" + Format(Cos(Rnd) * 10, "0.00000")
	Button Button8 Text "" + Format(Tan(Rnd) * 10, "0.00000")
	Button Button9 Text "" + Format(Log(Rnd) * 10, "0.00000")
	Button Test1 Text "Test1" + CRLF + "two lines"
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next
For v1 = 0 To 100
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Button7 Text "" + Format(Cos(Rnd) * 10, "0.00000")
	Button Button8 Text "" + Format(Tan(Rnd) * 10, "0.00000")
	Button Button9 Text "" + Format(Log(Rnd) * 10, "0.00000")
	Button Test1 Text "Test1" + CRLF + "two lines"
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next
For v1 = 0 To 100
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Button7 Text "" + Format(Cos(Rnd) * 10, "0.00000")
	Button Button8 Text "" + Format(Tan(Rnd) * 10, "0.00000")
	Button Button9 Text "" + Format(Log(Rnd) * 10, "0.00000")
	Button Test1 Text "Test1" + CRLF + "two lines"
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next
For v1 = 0 To 100
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Button7 Text "" + Format(Cos(Rnd) * 10, "0.00000")
	Button Button8 Text "" + Format(Tan(Rnd) * 10, "0.00000")
	Button Button9 Text "" + Format(Log(Rnd) * 10, "0.00000")
	Button Test1 Text "Test1" + CRLF + "two lines"
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next
For v1 = 0 To 100
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Button7 Text "" + Format(Cos(Rnd) * 10, "0.00000")
	Button Button8 Text "" + Format(Tan(Rnd) * 10, "0.00000")
	Button Button9 Text "" + Format(Log(Rnd) * 10, "0.00000")
	Button Test1 Text "Test1" + CRLF + "two lines"
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next
For v1 = 0 To 100
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Button7 Text "" + Format(Cos(Rnd) * 10, "0.00000")
	Button Button8 Text "" + Format(Tan(Rnd) * 10, "0.00000")
	Button Button9 Text "" + Format(Log(Rnd) * 10, "0.00000")
	Button Test1 Text "Test1" + CRLF + "two lines"
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next
For v1 = 0 To 100
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Button7 Text "" + Format(Cos(Rnd) * 10, "0.00000")
	Button Button8 Text "" + Format(Tan(Rnd) * 10, "0.00000")
	Button Button9 Text "" + Format(Log(Rnd) * 10, "0.00000")
	Button Test1 Text "Test1" + CRLF + "two lines"
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next
For v1 = 0 To 100
	Button ButtonName1 Text ButtonName1 + " = " + Format(v1, "0")
	Button Button2 Text "Test2 = " + Format(v1, "0")
	Button Button4 Text "" + Format(Rnd * 10, "0.00000")
	Button Button5 Text "" + Format(Rnd * 10, "0.00000")
	Button Button6 Text "" + Format(Sin(Rnd) * 10, "0.00000")
	Button Button7 Text "" + Format(Cos(Rnd) * 10, "0.00000")
	Button Button8 Text "" + Format(Tan(Rnd) * 10, "0.00000")
	Button Button9 Text "" + Format(Log(Rnd) * 10, "0.00000")
	Button Test1 Text "Test1" + CRLF + "two lines"
	Button Test2 Text "Test2"
	Print v1
	Wait Seconds 0.001
Next


