Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement