home *** CD-ROM | disk | FTP | other *** search
- set procedure to server
- wrun server.exe
- select window "CONSOLE"
- use stkinfo
- talk to Server about StockInfo
- enable autotalk on GM do servapp before
- if contact()
- * erase
- @ 2,20 say 'Stock Quotations'
- @ 5,28 say 'IBM'
- @ 6,10 get ibm
- @ 8,21 say 'General Motors'
- @ 9,10 get gm
- ?
- STORE autodata("IBM") TO ISIBM &&Note the calls are is upper case
- STORE autodata("GM") TO ISGM &&as required by server
- IF ISGM
- @ 18,0 SAY 'GM IS ACTIVE'
- ENDIF
- IF ISIBM
- @ 18,30 SAY 'IBM IS ACTIVE'
- ENDIF
- READ
- stopdata("IBM")
- stopdata("GM")
- else
- ? 'No Contact'
- endif
- wait
- terminate
- quit
-
-
- procedure servapp
- @ 20,0 say 'Appending Record '+ ltrim(str(recno(),4)) + ' '
- append blank
- return
-
-
-
-
-