Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using NOFILTER
Message
De
01/05/2001 14:12:45
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00502009
Message ID:
00502138
Vues:
19
>>>>>Can you provide the actual code for Myfunction?
>>>>
>>>>It is in my original message. I lowered it down to only have those lines.
>>>IF ldDate and ldDate2 are declared as local than they are invisible in Myfunction and
SET FILTER TO CREATION>=ldDate AND CREATION <=ldDate2
>>>became invalid. Foxpro evaluates filter only after pointer has been moved in table. That would explain why yoy get NOT EOF and EOF in Myfunction.
>>
>>Bingo, this is what I was always doing by PRIVATing my variables instead of LOCALizing them when I was calling a function to display. I just removed NOFILTER, change to PRIVATE and it is working as is.
>
>It seems to me like a bug to me.
>Shouldn't foxpro give an error 'Variable ldDate not found' in this case?

Yes, exactly.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform