Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tablerevert and updateable views
Message
 
À
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:
00022815
Vues:
37
>>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
>
>
>You know why it's like The Force?
>
>Duct Tape has a Dark Side, a Light Side, and it binds the Universe together.


(ROFL)

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform