Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tablerevert and updateable views
Message
De
13/03/1997 23:24:10
 
 
À
04/03/1997 04:38:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00022691
Message ID:
00024186
Vues:
38
>>That's it! In the toolbutton I set focus to another field on the form and the revert worked fine! A thousand thanks!
>>
>>When I tried to set focus to the active form active control the focus just stayed with the active control, so I created another control on the form (aptly named ducttape), transferred focus to it, ran the app object revert routine, then went back to the formerly active control. It worked like a charm. You have saved many hairs on my head! There's probably a better way to do this, but at least now I know what the problem was!
>>
>
>OK, you need to run the debugger. Put a watch on PROGRAM() and make it a breakpoint.
>
>Now, try your _SCREEN.activeform.activecontrol.setfocus()
>
>
>You should see that it fires WHEN (to see if it can take Focus).
>Then VALID to validate its value, to see if it can lose Focus.
>Then LostFocus to lose the Focus.
>Then GotFocus to get the Focus.
>
>Even though the same control has the focus, it WILL have written its value to the table and you should be OK.
>
>
>You don't _need_ to use DuctTape <g>
>
>
>You know why it's like The Force?
>
>Duct Tape has a Dark Side, a Light Side, and it binds the Universe together.

Hey Paul,

Anybody ever tell you you're ahead of your time?

thanx for the help
tony
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform