Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for IF STATEMENTS
Message
 
 
À
04/02/2003 20:20:35
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00749162
Message ID:
00749171
Vues:
28
This message has been marked as the solution to the initial question of the thread.
Try
DO CASE
CASE code = "A"
 	DO CASE 
 	CASE age > 75
 	CASE age >= 65
 	CASE age >= 55
 	OTHERWISE
	ENDCASE 	
CASE code = "B"
 	DO CASE 
 	CASE age > 75
 	CASE age >= 65
 	CASE age >= 55
 	OTHERWISE
	ENDCASE 	
OTHERWISE
ENDCASE
>Hi all:
>
>What is the syntax to do the following with AN if..statement.
>
>
DO Case
>  Case code = "A"
>    if age =>55 and <65
>       do A
>    else
>       if age =>65 and <74
>          do B
>       else
>          if age >75
>              do C
>          else
>              if age <55
>                  do D
>          endif
>       endif
>    endif
>  Case code = "B"
>     similar if statements as above.
>endcase
>
>What is the best way to accomplish this? Thanks much.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform