Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd TableUpdate Behaviour
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Odd TableUpdate Behaviour
Miscellaneous
Thread ID:
00088424
Message ID:
00088424
Views:
75
Using VFP 5. I have a custom navigation (VCR) toolbar with the following code in the click event of the tool bar. Each button's click event calls this event by issuing -- This.Parent.Click(This.Name)
parameter lcObject
lcTable = This.TableName
if !used(lcTable) or type("lcObject") <> "C"
   return
endif
if between(CursorGetProp("buffering", lcTable), 2, 3)
   =TableUpdate[1, .t., (lcTable)]
endif
do case
   case lcObject = "cmdFirst"
        go top in (lcTable)
   case lcObject = "cmdPrevious"
        skip -1 in (lcTable)
   case lcObject = "cmdNext"
        skip in (lcTable)
   case lcObject = "cmdLast"
        go bottom in (lcTable)
endcase
Started the debugger, and verified the TableUpdate command is firing. However, if the field on the form I made changes to still has focus when I click a toolbar button, the change made to the field is lost. If I move off the field before clicking the toolbar, the change is updated. However, If I make a change to a field and click Exit button on the form, the change to the current field IS saved regardless of whether it still has focus or not.

Any enlightment anyone can share on this?

TIA
Mark McCasland
Midlothian, TX USA
Next
Reply
Map
View

Click here to load this message in the networking platform