Category : Files from Magazines
Archive   : DBMS0690.ZIP
Filename : TECHTIP1
Output of file : TECHTIP1 contained in archive : DBMS0690.ZIP
Listing 1 for Halpin's Tip
* SAMPLEDB.DBF
* Field Name Type Width Dec
* ---------- ---- ----- ---
* REGION C 7
* STATE C 2
* FLDNAMEX N 10 0
* SPACES C 1
*
* SURJSORT.PRG
*
USE SAMPLEDB
CLEAR
? "Type search criteria here: "
ACCEPT " " TO SURJCRIT
COUNT FOR &SURJCRIT TO CNTRNAME
?
? CNTRNAME
?
WAIT "Output these records? (Y/N) " TO OUTPUTIT
?
DO WHILE UPPER(OUTPUTIT) = "Y'
? "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="N"
EXIT
CASE SORTCRIT="R"
INDEX ON REGION TO SURJNDEX
CASE SORTCRIT="S"
INDEX ON STATE TO SURJNDEX
OTHERWISE
LOOP
ENDCASE
LOCATE FOR &SURJCRIT
SET PRINT ON
DO WHILE .NOT. EOF()
? FLDNAMEX
CONTINUE
ENDDO
SET PRINT OFF
EXIT
ENDDO
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/