Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ControlSource limitation - VFP recordset object posted
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
ControlSource limitation - VFP recordset object posted
Divers
Thread ID:
00287995
Message ID:
00287995
Vues:
82
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
Fil
Voir

Click here to load this message in the networking platform