Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PARENT is not an object?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00065410
Message ID:
00065692
Vues:
41
Colin,

>SELECT Buil, Buildesc FROM BUIL ;
>WHERE PB AND Proj=This.Parent.Parent.Column9.cboProj.Value ;
>INTO CURSOR cBuillist ORDER BY Buildesc

You generally can not use object properties in SELECT statements, because VPF is prone to query them when the object you expect is not the current object. Pull the property to a local memvar at the time you execute the select:

lcProj = this.parent.parent.column9.cboProj.Value
select ...
where pb and proj=lcProj...
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform