On Apr 23, 2007, at 4:45 PM, Carl Karsten wrote:
> 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.
I don't understand the problem. You have two properties on some
object, and you want to bind the textboxes to them. So give the
objects unique identifiers (i.e. RegIDs), and bind the textboxes:
tx1.DataSource = self.Form.objRegID
tx1.DataField = "MyProp1"
tx2.DataSource = self.Form.objRegID
tx2.DataField = "MyProp2"
Then in the click handler, you write:
obj = self.Form.objRegID
obj.MyProp1, obj.MyProp2 = obj.MyProp2, obj.MyProp1
self.Form.update()
Of course, if the handler is a method of the form, change the
'self.Form' to 'self'.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
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]