home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP13_3.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ READ MODAL ╡≈╙├╫└├µ╕¿╓·╣ñ╛▀ - ─Ω└·╓╨╓╕╢¿╡─ ⌐ª
- *⌐ª ╚╒╞┌╡─╖╢└². ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- CLEAR
- ACTIVATE SCREEN
- SET TALK OFF
- * ╢¿╥σ╥╗╕÷╚╒╞┌╨═▒Σ┴┐
- this_date = {}
- @ 1,1 GET this_date VALID vdate(this_date) ;
- ERROR " ╒Γ╕÷╚╒╞┌▓╗─▄╩╟┐╒░╫! "
- READ
-
- FUNCTION vdate
- PARAMETERS tempdate
- mreturn = .T.
- IF EMPTY(tempdate)
- PUSH KEY CLEAR
- ON KEY LABEL ESCAPE DO getdate
- ON KEY LABEL CTRL-W DO getdate
- ON KEY LABEL CTRL-Q DO getdate
- ON KEY LABEL CTRL-END DO getdate
- ON KEY LABEL F2 DO getdate
- ON KEY LABEL LEFTMOUSE DO chkmouse ;
- WITH MROW(""), MCOL("")
- * [F2] ╝ⁿ╩╟╔Φ╢¿╡─═╦│÷╝ⁿ, ╞Σ╦ⁿ╩╟▒╪╨δ┐╪╓╞╡─ FOXPRO ╣╪▒╒╥╗╕÷┤░┐┌╡─╖╜╖¿
-
- WAIT WINDOW " ░┤ [F2] ╥╘╤í╘±╥╗╕÷╚╒╞┌. " NOWAIT
-
- ACTIVATE WINDOW Calendar
- mquit = .F.
- READ MODAL WITH "Calendar" VALID mquit
- WAIT CLEAR
- ON KEY
- POP KEY
- IF LASTKEY() # 27
- * 27 ╩╟╫ε║≤░┤┴╦ [Esc] ╝ⁿ
- this_date = _DIARYDATE
- * ░╤╥╗╕÷╨┬╚╒╞┌╕│╕° GET
- ELSE
- mreturn = .F.
- ENDIF
- ENDIF
- RETURN mreturn
-
- PROCEDURE getdate
- * ╙├╙┌└δ┐¬╠╪╩Γ╡─ READ
- mquit = .t.
- DEACTIVATE WINDOW Calendar
- CLEAR READ
- RETURN
-
- PROCEDURE chkmouse
- PARAMETERS mouserow, mousecol
- IF mouserow = WLROW("Calendar") ;
- AND mousecol = WLCOL("Calendar")
- DO getdate
- ENDIF
- RETURN