Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd TableUpdate Behaviour
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00088424
Message ID:
00088989
Vues:
46
>>Mark, one way that was mentioned awhile ago her on UT was to add an invisible control to your base form. In your toolbar code, setfocus to this control, which effectively forces the Valid and LostFocus in the 'last' control to fire and update the buffer with the contro value.
>>
>>HTH
>
>I also got the following to work as well in the toolbar click method:
>parameter lcObject
>lcTable = This.TableName         && class properties that store the name of the table
>lcForm = This.FormName            && and the form name that the toolbar applies to
>if !used(lcTable) or type("lcObject") <> "C"
>   return
>endif
>if type(lcForm) = "O"
>   if upper(&lcForm..ActiveControl.BaseClass) $"TEXTBOX,EDITBOX,CHECKBOX,OPTIONGROUP"
>      &lcForm..ActiveControl.Value = &lcForm..ActiveControl.Value
>   endif
>endif
>
>Setting the Value of the active control to itself did the trick.

I'd forgotten that method - more elegant than the one I suggested.
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform