Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* CopyDate.Prg
_CLIPTEXT = DATE()
ON KEY LABEL CTRL+F2 DO CopyDate
_CLIPTEXT = [b]DTOC([/b]DATE()[b])[/b]
[COLOR=#00008B]DEFINE BAR[/color] [RED]5018[/RED] [COLOR=#00008B]OF _MTOOLS ;
PROMPT[/color] [COLOR=#FF00FF]"\<Developer's Comment"[/color] ;
[COLOR=#00008B]AFTER _MTL_OPTNS ;
KEY ALT+D
ON SELECTION BAR[/color] [RED]5018[/RED] [COLOR=#00008B]OF _MTOOLS ;
DO[/color] [MAROON]InsertProgsComment[/MAROON] [COLOR=#00008B]IN HOME()[/color] + [COLOR=#FF00FF]"vfpstart.prg"[/color]
[COLOR=green]*********************************************************
* InsertProgsComment
*********************************************************[/color]
[COLOR=darkblue]PROCEDURE[/color] [maroon]InsertProgsComment[/maroon]
[COLOR=darkblue]LOCAL[/color] [maroon]lcOnError[/maroon][blue],[/blue] [maroon]lnError[/maroon][blue],[/blue] [maroon]lnWHandle[/maroon]
[COLOR=darkblue]If[/color] [blue]not[/blue] [COLOR=fuchsia]"FOXTOOLS.FLL"[/color] [blue]$[/blue] [COLOR=darkblue]Upper[/color][blue]([/blue][COLOR=darkblue]Set[/color][blue]([/blue][COLOR=fuchsia]"Library"[/color][blue]))[/blue]
[COLOR=darkblue]Set Library to[/color] [blue]([/blue][COLOR=darkblue]Home[/color][blue]()+[/blue][COLOR=fuchsia]"FoxTools.Fll"[/color][blue])[/blue] [COLOR=darkblue]Additive
Endif[/color]
[maroon]lcOnError[/maroon] [blue]=[/blue] [COLOR=darkblue]ON[/color][blue]([/blue][COLOR=fuchsia]'ERROR'[/color][blue])[/blue]
[COLOR=darkblue]ON ERROR[/color] [maroon]lnError[/maroon] [blue]=[/blue] [COLOR=darkblue]ERROR[/color][blue]()[/blue]
[maroon]lnWHandle[/maroon] [blue]=[/blue] [maroon]_WOnTop[/maroon][blue]()[/blue]
[COLOR=darkblue]IF[/color] [maroon]lnWHandle[/maroon] [blue]>[/blue] [red]0[/red]
[COLOR=darkblue]LOCAL[/color] [maroon]lcComment
lcComment[/maroon] [blue]=[/blue] [COLOR=fuchsia]'&'[/color] [blue]+[/blue] [COLOR=fuchsia]'& '[/color] [blue]+[/blue] [COLOR=darkblue]GETENV[/color][blue]([/blue][COLOR=fuchsia]'LOGIN_NAME'[/color][blue]) +[/blue] [COLOR=fuchsia]' '[/color] [blue]+[/blue] [COLOR=darkblue]DTOC[/color][blue]([/blue][COLOR=darkblue]DATE[/color][blue]()) +[/blue] [COLOR=fuchsia]': '[/color]
[maroon]_EdInsert[/maroon][blue]([/blue] [maroon]lnWHandle[/maroon][blue],[/blue] [maroon]lcComment[/maroon][blue],[/blue] [COLOR=darkblue]Len[/color]([maroon]lcComment[/maroon][blue]) )[/blue]
[COLOR=darkblue]ENDIF
ON ERROR[/color] [blue]&[/blue][maroon]lcOnError[/maroon]
[COLOR=darkblue]ENDPROC[/color]