Hi Marc,
>What is the limit of CASE in a DO CASE ?
The number depends on the size of the procedure. In VFP 8 and before the entire procedure cannot exceed 64 KB which roughly equates to 3600 CASE statements if you don't have any code between them. Less if you have code. The limit in VFP 9 should be around 200 millions, but I'm sure nobody has tested that yet. In VFP 9 you will notice an increase in code size (circa 20%) when you go beyond 64 KB for a procedure with CASE statements.
--
Christof