Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WITH... ENDWITH problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00459656
Message ID:
00459742
Vues:
24
>There seems to be a problem in VFP's parser. cPeriod and cYear are both properties of thisform.oAD
>Even the debugger shows valid values for all components of the failed line of code.
>
>with thisform.oAD
> locate for FinYear = .cFinYear and Period = .cPeriod && fails "variable cPeriod does not exist"
> locate for FinYear = .cFinYear and Period = thisform.oad.cPeriod && works
> locate for FinYear = .cFinYear && works
>endwith

>
>Any ideas?
>I can work around it ok, but have I goofed somewhere?

I've run into this before too. I did the work around I'm sure you are going to use, assign the properties to local vars. I've never investigated why this happens.

Steve
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform