Category : Files from Magazines
Archive   : DBMS0690.ZIP
Filename : TECHTIP2

 
Output of file : TECHTIP2 contained in archive : DBMS0690.ZIP

Listing 2 for Halpin's Tip


* NEWSURCH.PRG
*
USE SAMPLEDB
CLEAR
? "Type search criteria here: "
ACCEPT " " TO SURJCRIT
? "Choose the order in which the records should be presented. "
? " N for record number; or"
? " R for region; or"
? " S for State.
WAIT "Type the letter of your choice: " TO SORTCRIT
SORTCRIT=UPPER(SORTCRIT)
DO CASE
CASE SORTCRIT="R"
SORTCRIT="REGION"
CASE SORTCRIT="S"
SORTCRIT="STATE"
OTHERWISE
SORTCRIT="SPACES"
ENDCASE
INDEX ON IIF(&SURJCRIT,"("+&SORTCRIT,"z") TO SURJNDEX
GOTO TOP
COUNT WHILE &SURJCRIT TO CNTRNAME
?
? CNTRNAME
?
GOTO TOP
WAIT "Output these records (Y/N) " TO OUTPUTIT
?
SET PRINT ON
DO WHILE UPPER(OUTPUTIT)="Y" .AND. &SURJCRIT
? FLDNAMEX
SKIP
ENDDO
SET PRINT OFF



  3 Responses to “Category : Files from Magazines
Archive   : DBMS0690.ZIP
Filename : TECHTIP2

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/