Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Diabled Button Valid firing FPW 2.6 SPR running in VFP 5/6
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Diabled Button Valid firing FPW 2.6 SPR running in VFP 5/6
Miscellaneous
Thread ID:
00168218
Message ID:
00168218
Views:
95
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
Map
View

Click here to load this message in the networking platform