Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form control bound to oBizObj.MyProperty hassle
Message
From
10/04/2000 10:27:20
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00357415
Message ID:
00357519
Views:
23
Hi Rox,
I had a MyProp_Assign() with no code in it the other day. I could set
This.MyProp = "X" all day long, but This.MyProp didn't budge. Just a thought.


>Here's a head scratcher, something I did several times in an older version of the framework doesnt seem to like me in the lastest version. Either that or I'm doing something really stupid here...
>
>I got a textbox who's controlsource needs bound to a custom property on Thisform.oBizObj. I cant define that at design time since the control inits before the bizobj, so in form's init() I do:
>
>IF NOT DODEFAULT()
>    RETURN .F.
>ENDIF
>
>ThisForm.txtCurrViewDesc.oControl.ControlSource='Thisform.oBizObj.MyCustomPropertyName'
>
>
>After the above code in form's init, I do some runtime enable/disable control handling then call Thisform.RefreshForm(). All is well at first glance, I see the correct value of the bizobj property in my textbox & textbox is enabled like it should be. But when I go to change the value shown in the textbox (which ideally should also change the value of the underlying bizobj) nothing happens. I can type & edit to that textbox to my heart's content but changes are not shown and the underlying bizobj property acts like it's readonly???
>
>The custom bizobj property is defined as public, so what stupid thing am I doing wrong? TIA!
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform