Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WITH... ENDWITH problem
Message
 
 
À
04/01/2001 23:06:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00459656
Message ID:
00459707
Vues:
25
Hi!


I think this problem related to use of such things like '.AND.', '.T.' etc. Workaround - take .cPeriod into '()':

locate for FinYear = .cFinYear and Period = (.cPeriod) && should work, AFAIK


>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?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform