In VFP6 sp5
=================
When Caps and Num are in fact ON, every messagebox should appear. But only 1 and 4 do.
When Caps or Num is ON, messagebox 4 and 5 should show up, but only 4 does.
Is this normal or is this an error in VFP?
=================
When Caps and Num are in fact ON, every messagebox should appear. But only 1 and 4 do.
When Caps or Num is ON, messagebox 4 and 5 should show up, but only 4 does.
Is this normal or is this an error in VFP?
Code:
if numlock()
if capslock()
=messagebox('1. Caps and Num are ON')
endif
endif
if numlock() and capslock()
=messagebox('2. Caps and Num are ON')
endif
if numlock()=.t. and capslock()=.t.
=messagebox('3. Caps and Num are ON')
endif
if numlock() or capslock()
=messagebox('4. Caps or Num is ON')
endif
if numlock()=.t. or capslock()=.t.
=messagebox('5. Caps or Num is ON')
endif