Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TABLEUPDATE(.T.) bombs with uncommitted changes
Message
From
02/10/2003 05:07:59
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00833421
Message ID:
00834137
Views:
35
David,

I'm aware of the consequences. When the oEditableForm dies, so does the toolbar. Since every every form's got it's own oToolBar, it pretty much works as I expect it to. Apart from the not getting the focus thing, that is.

I guess I'll have a look at that code again, but if you can think of something more simple, I'd be happy to hear about it.

>Peter,
>
>Your CreateObject() based code isn't doing much but tying the lifetime of the toolbar to the form, when the form goes away it'll take your toolbar with it.
>
>>Bearing in mind that only one object, whether it's in a grid or not, can have the focus, that object alone, most likely being the last one edited, is the one that will cause the Tableupdate ()to fail. (Right?)
>
>Yes that's what's wrong your last editted control has not committed it's changes to the ControlSource yet.
>
>>What's wrong with a This.Setfocus in the commandbutton's Click method, or am I being overly optimistic here?
>
>Umm you can't. toolbar buttons don't get focus which requires the code we've been discussing in the thread.
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform