Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for easy answer to error msg.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00310673
Message ID:
00314339
Vues:
29
Hi Steve,

>If I have to close about 12 different tables and repeat your tip 12 times, would it make more sense to do a DO CASE ... ENDCASE using your tip without the IF...ENDIF, but with the rest of the code?

Unfortunatly, no. A CASE exists once a CASE is .T., so, it would only close one table, then none, example:
do case
	case .t.
		wait window '1'
	case .t.
		wait window '2'
endcase

if .t.
	wait window '3'
endif
if .t.
	wait window '4'
endif
You will only see 1, 3, 4. Does that make sense? I see what you were getting at though, just less typing :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform