Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd TableUpdate Behaviour
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Odd TableUpdate Behaviour
Divers
Thread ID:
00088424
Message ID:
00088424
Vues:
74
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform