General information
Category:
Coding, syntax & commands
Title:
ControlSource limitation - VFP recordset object posted
Hi all,
I posted today on the UT file section a sample of a VFP recordset with a field collection
If you have time to try this collection you can test another VFP property use limitation. ( see the thread with Nick about Value )
My first idea doing this was to push out any ALIAS on the UI.
oRs=CREATEOBJECT("recordset","MyAlias")
? oRs.Fields("MyField").Value
oRs.Fields("MyField").Value = "MyNewValue"
? oRs.Fields("MyField").Value <- Ok
MyUIObject.controlSource = oRs.Fields("MyField").Value <- Crash
Now we are in the controlSource property limitation.
I am using form properties as control ControlSource that's ok .
But in my fields collection the object reference is bridged by the collection
This will crash VFP !
I think this is important for a best use of VFP.
Maybe I try to late in the night, or is this a real limitation ?
Any feedback is really welcom !
Marcel
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only