>>I got this error msg now
>>
>>Operator/operand type mismatch (Error 107)
>>
>>When I try to put these codes in the click event. By the way, customer.choice is a character type
>>
>>if between(this.value, 1, this.buttoncount)
>>replace customer.choice with this.buttons(this.value).caption
>>else
>>wait "Unexpected value "+str(this.value) window
>>endif
>
>>> Which line generates the error?
>
>This line,
>if between(this.value, 1, this.buttoncount)
I though so. Open the debugger and run. If you hold the cursor over the This.Value in the trace window, you'll see what it is.
George
Ubi caritas et amor, deus ibi est