Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select case statement

Status
Not open for further replies.

matarese

Programmer
Feb 6, 2002
3
0
0
US
how do you apply select case () ... end select in dbase?
 
Hi

Try DO CASE
CASE 1
.....
CASE 2
......
.....
ENDDO

Regards
 
The Proper Syntax is;

Do Case
Case X > 1
Some Statements
Case x = 1
Some statements
Case x < 1
Some statements
EndCase

Be sure to put the case qualifier with the most aguements first since the case process will do the first case statement that evaluates to .T. first then exit the case routine. Only one case statement will execute.
Have fun
Randal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top