Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy one But I forgot. If n = 0, or n = 1
Message
 
À
08/06/2013 16:26:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01575918
Message ID:
01575979
Vues:
81
>What is the function to replace a statement like
>
>if n = 1 or n = 2 or n = 3
>
>by something shorter. I thought it would be something like if n in(1,2,3)

If [n] can't be negative number or zero:
IF n < 4
  ...
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform