Gentlemen,
I have a weird problem that I have solved but not using the way I wanted it to 
work:


1.       Container which has textboxes, comboboxes in it the whole container 
being a class. No controlsources bound to the class at designtime.

Container has a property added to it called oData with an assign method.


2.       Form holding the class has a private datasession with a grid on the 
form containing the data record by record which needs to be displayed in the 
container.


3.       In the grid rowcolchange method the data from the current record is 
scattered directly to a form property object oData which is immediately 
assigned to the oData Property in the container - so there is one form data 
object that the container can see through the oData property of its own.


4.       In the container, the assign method of oData binds the various field 
"controlSource" in the object to the properties of the container oData.

Example: This.txtId.controlsource = "This.odata.id"


5.       When run ... and debugged line by line into the assign method of oData 
in the container, VFP complains that oData (the container oData not the form 
oData) cannot be found despite the fact that if you specify it in the watch 
list it can be seen perfectly and the program continues without problem or 
further errors if the error is ignored. The same error occurs regardless of 
debug being used.



I have found a way around the problem by not doing the double assign i.e. the 
scatter into the form property oData and then simply binding the controls in 
the container in the assign statement to 
<<control>>.Controlsource="Thisform.oData.<<property>>". Although it works I 
really want to make the assignments non specific so I can pass an object 
reference from anywhere but at least it solves the problem short term. Anyone 
any ideas?



If you want an example of this then I can post up a link.



Dave




--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to