Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tablerevert and updateable views
Message
From
13/03/1997 23:24:10
 
 
To
04/03/1997 04:38:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00022691
Message ID:
00024186
Views:
42
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform