> > Um, I am sure it does if I open it in the CD, but there isn't anything to > run, and it doesn't look like it comes close to my goal of: controls in a > .cdxml bound to something other than self.something.
Open CD and save "as runable app" from the menu. > > My original post has "class myClass(object):" 2 properties: .MyProp1 and > .MyProp2 and a .swap() method. I want to see those 3 things bound to the 2 > text boxes and button. > > The end result should be: hit the button, see the values displayed in the > text boxes switch places. Very easy - use the "onHit" of the button. Place the code into the onHit of the button. myobj.swap() In swap place self.carl1.Value =myobj.property or some sort of code that grabs the data you want. > > The code and cdxml should be 'really close' - I just need figure out how to > tell the cdxml engine how to find myObj.MyProp1, 2 and .swap(). That is > what I need help with. What would you do in VFP to bind a control to some variable not a field of a cursor? Would you "thisform.varName = someValue". and when the data of thisform.varName changed - refresh the control? If so then do something similar in Dabo. Or change the control directly. Your choice. To my knowledge there is no other way to do it. I guess it would be possible to bind a control.Value to a property. I'm not sure how that might work when the property changed. I guess a refresh could do it. -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
