Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program error in hook code
Message
De
06/10/2008 08:06:15
 
 
À
06/10/2008 07:54:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01352927
Message ID:
01352967
Vues:
21
>>Hi,
>>
>>In the INIT of a project hook I have:
FOR EACH loFile IN APPLICATION.ACTIVEPROJECT.FILES
which has been working for years. Now I get a 'Property FILES not found' error on this line. The debugger shows Application.Project appears to be the valid and correct project; .FILES is an object but .FILES.Count gives 'Expression could not be evaluated'. This isn't project specific - I get the identical error in another project. Also, at least AFAICS, there's no #INCLUDE that could mess this up and if I step out of the code the project opens normally with all files listed.
>>
>>My VFP is a bit rusty - any suggestions as to what might cause this.
>
>Don't know why the problem, but my practice is to add an oProject property to every project hook and in Init, set it like this:
>
>This.oProject = _VFP.ActiveProject
>
>Then, I can refer to the project throughout the hook.
>
>Wonder if doing things that way would make a difference?

Hi,

Doesn't seem to make any difference I'm afraid. BTW, is there any difference between using the _VFP variable or using the Application object directly?

Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform