Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd TableUpdate Behaviour
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00088424
Message ID:
00088989
Views:
50
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform