General information
Category:
Coding, syntax & commands
Title:
Diabled Button Valid firing FPW 2.6 SPR running in VFP 5/6
I have some multifunctional (Add, Show, Edit, Find) data screen programs (.spr) originally created in 2.6 and compiled and running in VFP 5.0 on NT 4.0.
In the program that controls the states of the fields and buttons on the screen I set the states as Enabled or Disabled depending upon the current function of the screen. I do this by setting a variable (eg lcState) as (En/Dis)abled and then refreshing the screen item with
SHOW GET btAdd &lcAddState.
SHOW GET btDel &lcDelState.
etc.
The problem is, in some states the command buttons are disable (and greyed-out) but when clicked their Valid clauses are fired! In fact it is as if the click is 'buffered' because if I click once, the valid is not fired until I click on another object; twice and the object fires once upon the second click, then again when clicking on another object.
On top of all of this, the behavior seems to happen in Update, Find, and Add mode, but not in Show mode.
Any ideas?
Thanks in advance.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only