Hi.
I'm having a really stange error.
Im using the KeyAscii function to read buttons pressed from a remote control(it works, no need to go into details). In the program I'm setting these buttons to perform certain tasks. (mainly to use with winamp, play, stop, next, etc.)
The prblem arrises when I try to check that no button has been assigned twice.
I thought I could use the 'If' fucntion then use 'Or' to specify if a button has been used more than once
eg.
PauseBut = KeyAscii
If PauseBut = PrevBut Or PlayBut Then
MsgBox "Already Assigned This Button."
Exit Sub
End If
But no matter what the 'pausebut' value is, it will get a positive hit from the 'If' statement.
Am i usuing the 'Or' statement incorrectly???
or what is the problem???
thanks
Ben
I'm having a really stange error.
Im using the KeyAscii function to read buttons pressed from a remote control(it works, no need to go into details). In the program I'm setting these buttons to perform certain tasks. (mainly to use with winamp, play, stop, next, etc.)
The prblem arrises when I try to check that no button has been assigned twice.
I thought I could use the 'If' fucntion then use 'Or' to specify if a button has been used more than once
eg.
PauseBut = KeyAscii
If PauseBut = PrevBut Or PlayBut Then
MsgBox "Already Assigned This Button."
Exit Sub
End If
But no matter what the 'pausebut' value is, it will get a positive hit from the 'If' statement.
Am i usuing the 'Or' statement incorrectly???
or what is the problem???
thanks
Ben