Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for easy answer to error msg.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00310673
Message ID:
00314339
Views:
31
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 :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform