home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP11_1.PRG ⌐ª
- *⌐ª Function: INKEY() ║»╩²╙ª╙├╖╢└². ⌐ª
- *⌐ª DBF & File: SONG.DBF ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- SET SAFETY OFF
- CLOSE ALL
- IF FILE("song.dbf")
- USE song
- COPY STRUCTURE TO test FIELDS singer,songname,word,tune,company CDX
- ELSE
- CANCEL
- ENDIF
-
- * ╢¿╥σ╥╗╕÷▒α╝¡┤░┐┌
- DEFINE WINDOW win ;
- FROM INT((SROWS()-11)/2),INT((SCOLS()-40)/2) ;
- TO INT((SROWS()-11)/2)+10,INT((SCOLS()-40)/2)+39 ;
- TITLE "▒α╝¡┤░┐┌" ;
- FLOAT ;
- NOCLOSE ;
- SHADOW ;
- DOUBLE ;
- COLOR SCHEME 7
- USE test
- CLEAR
- ACTIVATE WINDOW win
- DO WHILE .T.
- APPEND BLANK
- @ 0,3 SAY "╕Φ╩╓╨╒├√: " GET SINGER
- @ 2,3 SAY "╕Φ╟·├√│╞: " GET SONGNAME
- @ 4,3 SAY " ╫≈┤╩: " GET WORD
- @ 6,3 SAY " ╫≈╟·: " GET TUNE
- @ 8,3 SAY "╖ó╨╨╣½╦╛: " GET COMPANY
- mykey=INKEY(5,"HM")
- * ╡╚┤² 5├δ╓╙, ╥■▓╪╙╬▒Ω, ╓º│╓╩≤▒Ω, ╜½░┤╝ⁿ╡─╢╘╙ª╓╡┤µ╚δ▒Σ┴┐ mykey ╓╨
- IF mykey=0
- * ╚τ╣√╩╣╙├╒▀ 5├δ╓╙─┌├╗╙╨░┤╚╬║╬╝ⁿ║═╩≤▒Ω░┤┼Ñ, ╘≥ INKEY() ║»╩²┤½╗╪
- * ╩²╓╡ 0, ╚╗║≤╟σ│²┤░┐┌, ╣╪▒╒╦∙╙╨╬─╝■, ╖╡╗╪ FOXPRO ╡─├ⁿ┴ε┤░┐┌
- CLEAR WINDOWS
- CLEAR GETS
- LIST
- CLOSE ALL
- EXIT
- ELSE
- IF mykey <> 151
- * ░┤╩≤▒Ω╡─╫≤░┤┼ñ, INKEY() ║»╩²┤½╗╪ 151
- KEYBOARD CHR(mykey)
- ENDIF
- READ
- ENDIF
- ENDDO
- RETURN