Information générale
Catégorie:
Codage, syntaxe et commandes
>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?
In addition, I've found as I'm sure many others have, that SQL-Select statements will pick up properties, but that Update and Delete statements do not. Or at least mine don't. I usually assign loThis as the biz object that I'm using to update/delete a record with so that each property, even though enclosed in a WITH/ENDWITH block, is prefixed with loThis.Property.
Steve
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement