Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building a Conditional Variable
Message
De
02/09/2008 11:23:25
 
 
À
02/09/2008 11:09:43
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01344079
Message ID:
01344159
Vues:
19
>>>Interesting. So, you mean to create a cursor, add a record for each condition, then search for the condition to determine if it should be used or not? I could have a flag on each record that detemines whether to use it or not. Rebuild the filter each time based on that rather than using a variable that just keeps getting added to. I like it. That is what you meant, sort of, right?
>>
>>Yes, I do it sometimes this way. Cursor is also convenient if you use filter condition through multiple forms. Certainly, it assumes that you don't use private datasessions.
>
>Ok, that worked great! I see that Viv had a similar idea using an object, but the cursor was easier for me implement right now. Thanks!

Class/object would be just a logical extension: custom class with a property 'CursorAlias' and a method 'BuildFilter'.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform