Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Diabled Button Valid firing FPW 2.6 SPR running in VFP 5
Message
De
16/12/1998 14:54:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00168218
Message ID:
00168219
Vues:
31
>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.

You'll run into all kinds of anomolies running the old READ code under VFP5. The WHEN's and VALID's fire off differently, too, especially when leaving a screen and coming back to it. You'll spend a lifetime trying to chase this stuff down. Just redo the forms in VFP and forget about it. Sorry if that's not the answer you wanted to hear, but it's the only reasonable solution...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform