Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Line of code does not evaluate to an object
Message
De
04/06/2007 06:57:24
 
 
À
04/06/2007 06:39:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01230157
Message ID:
01230162
Vues:
19
>>"Line of code does not evaluate to an object"
>>
>>on line:
>>
>> lcProjectName = UPPER( JUSTSTEM(_VFP.Projects(1).Name))
>>
>>Both in native VFP mode and the .exe I get this message. I ran the code in debug and the lcProjectName field correctly held the value "MPLAN" and it all worked fine, without incident.
>
>Terry,
>
>I think you need the project manager to be open for the next line to work
>
>_vfp.Projects(1).Name
>
Ah, I see. Yes you're right, Gregory. That was why debug allowed it - cos I had my project open. I'd assumed this _vfp.projects object would be carried through at compile time and "embedded" in the .exe.

Any idea how I can get a similar effect to work without the project?

Thanks

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform