Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized views, but want to override in design mode
Message
De
25/04/2007 03:50:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01219655
Message ID:
01219670
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Hi Tore
>
>>You can do this in many ways. One possibility is to create a file ALLRECORDS.YES on your machine, and add something like this
>>#IF FILE("ALLRECORDS.YES")
>>  #DEFINE ALLRECORDS .T.
>>#ELSE
>>  #DEFINE ALLRECORDS .F.
>>#ENDIF
>>Your select will then be:
>>WHERE ALLRECORDS or (COALESCE(TPACKINGLIST.IPKLNO, 0) != 0 ;
>>		OR TPACKINGLIST.IID = ?VP_IID)
>
>Thanks Tore, I like the idea. However, one more thing, how will I get in the # commands into the view?

Sorry, I had a temporary brain malfunction! :-)
WHERE file('ALLRECORDS.YES') or (COALESCE(TPACKINGLIST.IPKLNO, 0) != 0 ;
  OR TPACKINGLIST.IID = ?VP_IID)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform