home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP16_7.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ FERROR() ║»╩²╡─╖╢└². ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- CLEAR
- tmpfile = SYS(3) && ╜¿┴ó╥╗╕÷┴┘╩▒╬─╝■├√
- handle = FCREATE(tmpfile) && ┤≥┐¬┴┘╩▒╬─╝■
-
- IF handle < 0 && ╖ó╔·┤φ╬≤╩▒┤ª└φ
- DO CASE && Determine which error
- CASE FERROR() = 2
- reason = ' ╒╥▓╗╡╜╬─╝■! '
- CASE FERROR() = 4
- reason = ' ┤≥┐¬╬─╝■╠½╢α! '
- CASE FERROR() = 5
- reason = ' ├ⁿ┴ε╓┤╨╨╖╜╩╜┤φ╬≤! '
- CASE FERROR() = 8
- reason = ' ─┌┤µ▓╗╣╗! '
- CASE FERROR() = 29
- reason = ' ┤┼┼╠╬▐╩ú╙α┐╒╝Σ! '
- CASE FERROR() = 31
- reason = ' ┤≥┐¬╬─╝■┤φ╬≤╗≥╥╗░π┤φ╬≤ '
- ENDCASE
- * ╧╘╩╛┤φ╬≤╘¡╥≥
- WAIT WINDOW ' ▓╗─▄╜¿┴ó╬─╝■, ╥≥ '+ reason NOWAIT
- RETURN
- ELSE && ╬─╝■╜¿┴ó│╔╣ª
- DEFINE WINDOW wingets FROM 8,20 TO 16,60 ;
- CLOSE FLOAT SHADOW ;
- COLOR SCHEME 5 TITLE ' ╩²╛▌┬╝╚δ '
- ACTIVATE WINDOW wingets
- @ 1,5 SAY "╨╒├√:" GET fname DEFAULT SPACE (15)
- @ 3,5 SAY "╨╘▒≡:" GET lname DEFAULT SPACE (15)
- @ 5,5 SAY "╓░╬±:" GET pos DEFAULT SPACE (15)
- READ
- =FWRITE(handle,'╨╒├√:') && Output info entered by the user
- =FPUTS(handle,fname)
- =FWRITE(handle,'╨╘▒≡:')
- =FPUTS(handle,lname)
- =FWRITE(handle, '╓░╬±:')
- =FPUTS(handle,pos)
- =FCLOSE(handle) && ╣╪▒╒╬─╝■
- DEACTIVATE WINDOW wingets
- WAIT ' ░┤╚╬╥╗╝ⁿ╥╘╧╘╩╛╬─╝■ ' WINDOW
- ENDIF
- IF !WEXIST('wingets')
- DEFINE WINDOW wingets FROM 8,20 TO 16,60 ;
- CLOSE FLOAT SHADOW ;
- COLOR SCHEME 8 TITLE ' ╩²╛▌┬╝╚δ '
- ENDIF
- MODIFY FILE (tmpfile) NOWAIT WINDOW wingets && View the file
- CLEAR WINDOW && Remove the window