How do you bind a control to a property declared in a form?


Author
Message
Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (798 reputation)Advanced StrataFrame User (798 reputation)Advanced StrataFrame User (798 reputation)Advanced StrataFrame User (798 reputation)Advanced StrataFrame User (798 reputation)Advanced StrataFrame User (798 reputation)Advanced StrataFrame User (798 reputation)Advanced StrataFrame User (798 reputation)Advanced StrataFrame User (798 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
This may be the day of class I missed Tongue but is it possible to bind a textbox (or datepicker or grid or whatever ) to a property ( which perhaps is a list(of T) ) declared in the code of the form itself? i.e. no business object, just whatever is done to that control changes the value of the property without further coding.



I guess one could test on leaving a textbox or whatever and then change the property based on the text but I was thinking more of two way binding to a property. Seems the properties sheet wants a bizobj in order to bind. Should I use a non SF textbox for something like this?



Just feel I'm missing/forgetting/am completely ignorant of something very basic ... w00t





Replies
Edhy Rijo
E
StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)StrataFrame VIP (3.8K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
In Visual FoxPro you could define a form's property and then use that property as the binding control source and it will be updated automatically. I believe Charles is looking for the same feature.



Sorry I can not be of much help here since I was looking for the same a week ago and just opted for reading the control's value and update my property manually.

Edhy Rijo

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (2.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I think SF/ADO binding is intended to bind the property of some control/component to data (in a datatable). I don't think it can just arbitrarily bind two objects together. I'm not exactly sure I see the need, but then I've never used VFP.... Tongue
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search