home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
dbsales.zip
/
DBSALES.LBR
/
GAFIND.PRO
< prev
next >
Wrap
Text File
|
1986-01-14
|
1KB
|
55 lines
*
* GAFIND.PRO from GAMAIN.PRO
* Quick find by key
*
SET CONSOLE OFF
STORE 'KEY' to gasetting
STORE 'SET INDEX TO ' TO gaset
STORE 'SET FORMAT TO 'to gaform
STORE 'PROSPECTS' TO gapro
SET CONSOLE ON
&gaform&gasysb&gapro
DO WHILE .T.
CLEAR
TEXT
Quick find by indexed field
1. Find by KEY (default)
2. Find by COMPANY
3. Find by NAME
RETURN exits
Upper/lower case counts when searching.
ENDTEXT
@ 11,9 SAY 'CURRENT SETTING IS &gasetting'
ACCEPT '# and <enter> or string to search for and <enter>...' to;
GAFIND
DO CASE GAFIND
CASE GAFIND = '1'
STORE 'KEY' TO gasetting
&gaset&gasysb&gasetting
CASE GAFIND = '2'
STORE 'COMPANY' TO gasetting
&gaset&gasysb&gasetting
CASE GAFIND = '3'
STORE 'NAME' TO gasetting
&gaset&gasysb&gasetting
OTHERWISE
IF GAFIND < "!"
&gaset&gasysb&gakey&gasysb&gacompany&gasysb&ganame
RETURN
ENDIF
FIND &GAFIND
IF .NOT. EOF()
EDIT
ELSE
? CHR(7)
WAIT
ENDIF
ENDCASE
ENDDO