home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-01-02 | 62.3 KB | 1,862 lines |
- * Filename......: VernDemo.Prg
- *
- * Author........: Vernon E. Six, Jr.
- * 2908 Forest Hollow Lane #2329
- * Arlington, Texas 76006
- * Ph: (214) 283-3282 - Voice
- * Ph: (817) 695-0058 - BBS
- *
- * Last Update...: Thu 11-14-1991 11:30:18
- *
- * Notice........: Copyright (c) 1989-90 by Vernon E. Six, Jr.
- * All Rights Reserved World Wide
- *
- * Version.......: Clipper v5.0x
-
- #include "INKEY.CH"
- #include "SETCURS.CH"
-
- FUNCTION VernDemo
- *****
- * Demonstation program for VERNSIX5.LIB
- *****
- LOCAL ac_Msg[15] // Used Just About EveryWhere In Here
- LOCAL a_Menu := {} // Used with VS_Menu()
- LOCAL a_Options := {} // Used with VS_Menu()
- LOCAL ac_Title := {} // Used with VS_Menu()
-
-
- *══ Some basic sets ═══════════════════════════════════════*
-
- SET(_SET_EXCLUSIVE,.F.) // Allow Multiple Users
- SET(_SET_SCOREBOARD,.F.) // Don't show that Fugly line!!!!!!
-
-
- *══ Let's get the show on the road ════════════════════════*
-
- VS_InitVern() // Initialize my library
- VS_NewScrn() // Start with a fresh screen
- VS_InitHelp() // Open the context sensitive help files
-
-
- *══ Setup all the hot-keys ════════════════════════════════*
-
- SetKey(K_F1, {| p,l,v | VS_Help(p,l,v) } ) // Context Sensitive Help
- SetKey(K_ALT_H, {| p,l,v | VS_MakeHlp(p,l,v) } ) // Create Help
- SetKey(K_ALT_L, {| | VS_FakeLck() } ) // Simulate Network Locks
-
-
- *══ Some General Info Screens ═════════════════════════════*
-
- VS_GrabScr()
- ac_Msg[1] = PADC("Vern Six's Clipper ToolBox v8.04 Thu 01-02-1992",60)
- ac_Msg[2] = PADC("",60)
- ac_Msg[3] = PADC("Copyright (c) 1991 by Vernon E. Six, Jr.",60)
- ac_Msg[4] = PADC("All Rights Reserved World Wide",60)
- ac_Msg[5] = PADC("",60)
- ac_Msg[6] = PADC("Vernon E. Six, Jr.",60)
- ac_Msg[7] = PADC("2908 Forest Hollow Lane #2329",60)
- ac_Msg[8] = PADC("Arlington, Texas 76006",60)
- ac_Msg[9] = PADC("Ph: (214) 283-3282 - VOICE",60)
- ac_Msg[10] = PADC("Ph: (817) 695-0058 - BBS",60)
- VS_Msg(ac_Msg,10,"","")
- VS_Inkey(5)
- VS_PutScr()
-
- VS_GrabScr()
- ac_Msg[1] = PADC("Welcome to the Vern Six Clipper Toolbox!! ",60)
- ac_Msg[2] = PADC(" ",60)
- ac_Msg[3] = PADC("What you are about to see is a demonstration ",60)
- ac_Msg[4] = PADC("of some of the capabilities made possible via ",60)
- ac_Msg[5] = PADC("this library. ",60)
- ac_Msg[6] = PADC(" ",60)
- ac_Msg[7] = PADC("For the most part, you will probably not be ",60)
- ac_Msg[8] = PADC("able to see much from just using this demo. ",60)
- ac_Msg[9] = PADC("You should look at and STUDY the source code ",60)
- ac_Msg[10] = PADC("to really get a feel for what is taking place ",60)
- ac_Msg[11] = PADC("in this demo and how to access VERNSIX5.LIB. ",60)
- VS_Msg(ac_Msg,11," Vern Six's Clipper Toolbox v8.04 "," Press any key to continue ")
- VS_Inkey(0)
- VS_PutScr()
-
- VS_GrabScr()
- ac_Msg[1] = PADC("VERNSIX5.LIB comes complete with one-hundred thirty- ",60)
- ac_Msg[2] = PADC("seven fully operational functions that you can add ",60)
- ac_Msg[3] = PADC("to your Clipper v5.0x application with little effort.",60)
- ac_Msg[4] = PADC(" ",60)
- ac_Msg[5] = PADC("Each function is described in detail in the Norton ",60)
- ac_Msg[6] = PADC("Guides Database. If you own Clipper v5.0x you should",60)
- ac_Msg[7] = PADC("already have the Norton Guides Runtime Engine named ",60)
- ac_Msg[8] = PADC("NG.EXE. ",60)
- ac_Msg[9] = PADC(" ",60)
- ac_Msg[10] = PADC("To access VERNSIX.NG, simply copy VERNSIX.NG to your ",60)
- ac_Msg[11] = PADC("directory where NG.EXE resides. Refer to your ",60)
- ac_Msg[12] = PADC("Clipper v5.0x for assistance on installing and using ",60)
- ac_Msg[13] = PADC("Norton Guides. ",60)
- VS_Msg(ac_Msg,13,""," Press any key to continue ")
- VS_Inkey(0)
- VS_PutScr()
-
- VS_GrabScr()
- ac_Msg[1] = PADC("The rest of this demonstration is merely a series of",60)
- ac_Msg[2] = PADC("pull-down menus. You can move from one pull-down ",60)
- ac_Msg[3] = PADC("menu to the other, by the use of the left and right ",60)
- ac_Msg[4] = PADC("arrow keys. To 'pull a menu down', press [Return]. ",60)
- ac_Msg[5] = PADC("Once you highlight the function you want to see ",60)
- ac_Msg[6] = PADC("demonstrated, simply press [Return]. ",60)
- ac_Msg[7] = PADC(" ",60)
- ac_Msg[8] = PADC("Note: Not all functions can be demonstrated from a ",60)
- ac_Msg[9] = PADC("'visual perspective'. In these cases, a dialog ",60)
- ac_Msg[10] = PADC("window will appear to tell you what is taking place.",60)
- ac_Msg[11] = PADC(" ",60)
- ac_Msg[12] = PADC("Be sure to STUDY VERNDEMO.PRG to see what is taking ",60)
- ac_Msg[13] = PADC("place behind the scenes. ",60)
- VS_Msg(ac_Msg,13,"", " Press any key to continue ")
- VS_Inkey(0)
- VS_PutScr()
-
-
- *══ Open the databases ════════════════════════════════════*
-
- BEGIN SEQUENCE
-
- IF .NOT. VS_OpenLst( { "VERNSIX", "SAMPLE" } )
- BREAK
- ENDIF
-
- END SEQUENCE
-
-
- *══════════════════════════════════════════════════════════*
- *══ Setup the menu arrays ═════════════════════════════════*
- *══════════════════════════════════════════════════════════*
-
-
- *══ Title Array ═══════════════════════════════════════════*
- AADD( ac_Title, "Vern Six's Clipper ToolBox v8.04" )
- AADD( ac_Title, "CopyRight (c) 1991 by Vernon E. Six, Jr." )
- AADD( ac_Title, "All Rights Reserved World Wide" )
- AADD( ac_Title, "" )
-
-
- *══ General ═══════════════════════════════════════════════*
- a_Options := {}
-
- AADD( a_Options, { "VS_AddDays() ", {||ShowFunc("VS_AddDays()" ),Sorry() } } )
- AADD( a_Options, { "VS_AddHours() ", {||ShowFunc("VS_AddHours()" ),Sorry() } } )
- AADD( a_Options, { "VS_AddMins() ", {||ShowFunc("VS_AddMins()" ),Sorry() } } )
- AADD( a_Options, { "VS_AddSecs() ", {||ShowFunc("VS_AddSecs()" ),Sorry() } } )
- AADD( a_Options, { "VS_CfgFile() ", {||ShowFunc("VS_CfgFile()" ),D_CfgFile() } } )
- AADD( a_Options, { "VS_DateTime() ", {||ShowFunc("VS_DateTime()" ),Sorry() } } )
- AADD( a_Options, { "VS_DecTo36() ", {||ShowFunc("VS_DecTo36()" ),D_DecTo36() } } )
- AADD( a_Options, { "VS_Die() ", {||ShowFunc("VS_Die()" ),D_Die() } } )
- AADD( a_Options, { "VS_ElapDays() ", {||ShowFunc("VS_ElapDays()" ),Sorry() } } )
- AADD( a_Options, { "VS_ElapHours()", {||ShowFunc("VS_ElapHours()"),Sorry() } } )
- AADD( a_Options, { "VS_ElapMins() ", {||ShowFunc("VS_ElapMins()" ),Sorry() } } )
- AADD( a_Options, { "VS_ElapSecs() ", {||ShowFunc("VS_ElapSecs()" ),Sorry() } } )
- AADD( a_Options, { "VS_GetDate() ", {||ShowFunc("VS_GetDate()" ),Sorry() } } )
- AADD( a_Options, { "VS_GetTime() ", {||ShowFunc("VS_GetTime()" ),Sorry() } } )
- AADD( a_Options, { "VS_InitVern() ", {||ShowFunc("VS_InitVern()" ),Sorry() } } )
- AADD( a_Options, { "VS_NetEdit() ", {||ShowFunc("VS_NetEdit()" ),Sorry() } } )
- AADD( a_Options, { "VS_PopSets() ", {||ShowFunc("VS_PopSets()" ),Sorry() } } )
- AADD( a_Options, { "VS_PushSets() ", {||ShowFunc("VS_PushSets()" ),Sorry() } } )
- AADD( a_Options, { "VS_Random() ", {||ShowFunc("VS_Random()" ),D_Random() } } )
- AADD( a_Options, { "VS_ReadClr() ", {||ShowFunc("VS_ReadClr()" ),Sorry() } } )
- AADD( a_Options, { "VS_SaveClr() ", {||ShowFunc("VS_SaveClr()" ),Sorry() } } )
- AADD( a_Options, { "VS_SnapShot() ", {||ShowFunc("VS_SnapShot()" ),Sorry() } } )
- AADD( a_Options, { "VS_Unique() ", {||ShowFunc("VS_Unique()" ),D_Unique() } } )
- AADD( a_Options, { "VS_Version() ", {||ShowFunc("VS_Version()" ),D_Version() } } )
- AADD( a_Options, { "VS_Write() ", {||ShowFunc("VS_Write()" ),Sorry() } } )
- AADD( a_Options, { "VS_WriteLn() ", {||ShowFunc("VS_WriteLn()" ),Sorry() } } )
-
- AADD( a_Menu, { "General", a_Options } )
-
-
- *══ Input/Output ══════════════════════════════════════════*
- a_Options := {}
-
- AADD( a_Options, { "VS_Alert() ", {||ShowFunc("VS_Alert()" ),D_Alert() } } )
- AADD( a_Options, { "VS_ArraySkip()", {||ShowFunc("VS_ArraySkip()"),Sorry() } } )
- AADD( a_Options, { "VS_Ask() ", {||ShowFunc("VS_Ask()" ),D_Ask() } } )
- AADD( a_Options, { "VS_Ask2() ", {||ShowFunc("VS_Ask2()" ),D_Ask2() } } )
- AADD( a_Options, { "VS_BoxStr() ", {||ShowFunc("VS_BoxStr()" ),D_BoxStr() } } )
- AADD( a_Options, { "VS_Center() ", {||ShowFunc("VS_Center()" ),Sorry() } } )
- AADD( a_Options, { "VS_Color() ", {||ShowFunc("VS_Color()" ),D_Color() } } )
- AADD( a_Options, { "VS_Correct() ", {||ShowFunc("VS_Correct()" ),D_Correct() } } )
- AADD( a_Options, { "VS_Cvt2Str() ", {||ShowFunc("VS_Cvt2Str()" ),Sorry() } } )
- AADD( a_Options, { "VS_DefPal() ", {||ShowFunc("VS_DefPal()" ),Sorry() } } )
- AADD( a_Options, { "VS_Dim() ", {||ShowFunc("VS_Dim()" ),D_Dim() } } )
- AADD( a_Options, { "VS_Dol2Str() ", {||ShowFunc("VS_Dol2Str()" ),D_Dol2Str() } } )
- AADD( a_Options, { "VS_DropScr() ", {||ShowFunc("VS_DropScr()" ),Sorry() } } )
- AADD( a_Options, { "VS_Dte2Txt() ", {||ShowFunc("VS_Dte2Txt()" ),D_Dte2Txt() } } )
- AADD( a_Options, { "VS_EatKeys() ", {||ShowFunc("VS_EatKeys()" ),Sorry() } } )
- AADD( a_Options, { "VS_Edit() ", {||ShowFunc("VS_Edit()" ),D_Edit() } } )
- AADD( a_Options, { "VS_EndText() ", {||ShowFunc("VS_EndText()" ),Sorry() } } )
- AADD( a_Options, { "VS_FileSel() ", {||ShowFunc("VS_FileSel()" ),D_FileSel() } } )
- AADD( a_Options, { "VS_Filt() ", {||ShowFunc("VS_Filt()" ),D_Filt() } } )
- AADD( a_Options, { "VS_FootNote() ", {||ShowFunc("VS_FootNote()" ),Sorry() } } )
- AADD( a_Options, { "VS_GrabScr() ", {||ShowFunc("VS_GrabScr()" ),D_GrabPut() } } )
- AADD( a_Options, { "VS_Inkey() ", {||ShowFunc("VS_Inkey()" ),Sorry() } } )
- AADD( a_Options, { "VS_Menu() ", {||ShowFunc("VS_Menu()" ),D_Menu() } } )
- AADD( a_Options, { "VS_Msg() ", {||ShowFunc("VS_Msg()" ),D_MSg() } } )
- AADD( a_Options, { "VS_NewScrn() ", {||ShowFunc("VS_NewScrn()" ),D_NewScrn() } } )
- AADD( a_Options, { "VS_NoOther() ", {||ShowFunc("VS_NoOther()" ),D_NoOther() } } )
- AADD( a_Options, { "VS_NotEmpty() ", {||ShowFunc("VS_NotEmpty()" ),D_NotEmpty()} } )
- AADD( a_Options, { "VS_NotNeg() ", {||ShowFunc("VS_NotNeg()" ),D_NotNeg() } } )
- AADD( a_Options, { "VS_NotPos() ", {||ShowFunc("VS_NotPos()" ),D_NotPos() } } )
- AADD( a_Options, { "VS_NotZero() ", {||ShowFunc("VS_NotZero()" ),D_NotZero() } } )
- AADD( a_Options, { "VS_Num2Txt() ", {||ShowFunc("VS_Num2Txt()" ),D_Num2Txt() } } )
- AADD( a_Options, { "VS_Palette() ", {||ShowFunc("VS_Palette()" ),Sorry() } } )
- AADD( a_Options, { "VS_Parse() ", {||ShowFunc("VS_Parse()" ),D_Parse() } } )
- AADD( a_Options, { "VS_Pick() ", {||ShowFunc("VS_Pick()" ),D_Pick() } } )
- AADD( a_Options, { "VS_Proper() ", {||ShowFunc("VS_Proper()" ),D_Proper() } } )
- AADD( a_Options, { "VS_PutScr() ", {||ShowFunc("VS_PutScr()" ),D_GrabPut() } } )
- AADD( a_Options, { "VS_ScrlBar() ", {||ShowFunc("VS_ScrlBar()" ),Sorry() } } )
- AADD( a_Options, { "VS_ShdwFill() ", {||ShowFunc("VS_ShdwFill()" ),D_ShdwFill()} } )
- AADD( a_Options, { "VS_ShdwType() ", {||ShowFunc("VS_ShdwType()" ),D_ShdwType()} } )
- AADD( a_Options, { "VS_Tell() ", {||ShowFunc("VS_Tell()" ),D_Tell() } } )
- AADD( a_Options, { "VS_Text() ", {||ShowFunc("VS_Text()" ),Sorry() } } )
- AADD( a_Options, { "VS_TextEnh() ", {||ShowFunc("VS_TextEnh()" ),D_TextEnh() } } )
- AADD( a_Options, { "VS_TextStd() ", {||ShowFunc("VS_TextStd()" ),D_TextStd() } } )
- AADD( a_Options, { "VS_TextUns() ", {||ShowFunc("VS_TextUns()" ),D_TextUns() } } )
- AADD( a_Options, { "VS_Title() ", {||ShowFunc("VS_Title()" ),Sorry() } } )
- AADD( a_Options, { "VS_TxtColr() ", {||ShowFunc("VS_TxtColr()" ),Sorry() } } )
- AADD( a_Options, { "VS_VBoxStr() ", {||ShowFunc("VS_VBoxStr()" ),D_VBoxStr() } } )
- AADD( a_Options, { "VS_ValKeys() ", {||ShowFunc("VS_ValKeys()" ),D_ValKeys() } } )
- AADD( a_Options, { "VS_Wind() ", {||ShowFunc("VS_Wind()" ),D_Wind() } } )
- AADD( a_Options, { "VS_WindBox() ", {||ShowFunc("VS_WindBox()" ),D_WindBox() } } )
- AADD( a_Options, { "VS_WindEnh() ", {||ShowFunc("VS_WindEnh()" ),D_WindEnh() } } )
- AADD( a_Options, { "VS_WindShdw() ", {||ShowFunc("VS_WindShdw()" ),D_WindShdw()} } )
- AADD( a_Options, { "VS_WindStd() ", {||ShowFunc("VS_WindStd()" ),D_WindStd() } } )
- AADD( a_Options, { "VS_WindUns() ", {||ShowFunc("VS_WindUns()" ),D_WindUns() } } )
- AADD( a_Options, { "VS_WndColr() ", {||ShowFunc("VS_WndColr()" ),Sorry() } } )
-
- AADD( a_Menu, { "Input/Output", a_Options } )
-
-
- *══ Help ══════════════════════════════════════════════════*
- a_Options := {}
-
- AADD( a_Options, { "VS_CreateHelp()", {||ShowFunc("VS_CreateHelp()"),Sorry() } } )
- AADD( a_Options, { "VS_Help() ", {||ShowFunc("VS_Help()" ),D_Help() } } )
- AADD( a_Options, { "VS_HelpDbf() ", {||ShowFunc("VS_HelpDbf()" ),D_MakeHlp() } } )
- AADD( a_Options, { "VS_HelpPrg() ", {||ShowFunc("VS_HelpPrg()" ),Sorry() } } )
- AADD( a_Options, { "VS_HelpVar() ", {||ShowFunc("VS_HelpVar()" ),Sorry() } } )
- AADD( a_Options, { "VS_InitHelp() ", {||ShowFunc("VS_InitHelp()" ),Sorry() } } )
- AADD( a_Options, { "VS_MakeHlp() ", {||ShowFunc("VS_MakeHlp()" ),D_MakeHlp() } } )
-
- AADD( a_Menu, { "Help", a_Options } )
-
-
- *══ Database ══════════════════════════════════════════════*
- a_Options := {}
-
- AADD( a_Options, { "VS_AddRec() ", {||ShowFunc("VS_AddRec()" ),Sorry() } } )
- AADD( a_Options, { "VS_Append() ", {||ShowFunc("VS_Append()" ),Sorry() } } )
- AADD( a_Options, { "VS_Browse() ", {||ShowFunc("VS_Browse()" ),D_Browse() } } )
- AADD( a_Options, { "VS_CanMake() ", {||ShowFunc("VS_CanMake()" ),Sorry() } } )
- AADD( a_Options, { "VS_CloseLst() ", {||ShowFunc("VS_CloseLst()" ),Sorry() } } )
- AADD( a_Options, { "VS_DbfList() ", {||ShowFunc("VS_DbfList()" ),Sorry() } } )
- AADD( a_Options, { "VS_DelRec() ", {||ShowFunc("VS_DelRec()" ),Sorry() } } )
- AADD( a_Options, { "VS_DictPath() ", {||ShowFunc("VS_DictPath()" ),Sorry() } } )
- AADD( a_Options, { "VS_DictStru() ", {||ShowFunc("VS_DictStru()" ),Sorry() } } )
- AADD( a_Options, { "VS_DictVar() ", {||ShowFunc("VS_DictVar()" ),Sorry() } } )
- AADD( a_Options, { "VS_FLock() ", {||ShowFunc("VS_FLock()" ),Sorry() } } )
- AADD( a_Options, { "VS_FakeLck() ", {||ShowFunc("VS_FakeLck()" ),Sorry() } } )
- AADD( a_Options, { "VS_NtxAll() ", {||ShowFunc("VS_NtxAll()" ),Sorry() } } )
- AADD( a_Options, { "VS_NtxDict() ", {||ShowFunc("VS_NtxDict()" ),Sorry() } } )
- AADD( a_Options, { "VS_NtxList() ", {||ShowFunc("VS_NtxList()" ),Sorry() } } )
- AADD( a_Options, { "VS_OpenAll() ", {||ShowFunc("VS_OpenAll()" ),Sorry() } } )
- AADD( a_Options, { "VS_OpenDbf() ", {||ShowFunc("VS_OpenDbf()" ),Sorry() } } )
- AADD( a_Options, { "VS_OpenDict() ", {||ShowFunc("VS_OpenDict()" ),Sorry() } } )
- AADD( a_Options, { "VS_OpenLst() ", {||ShowFunc("VS_OpenLst()" ),Sorry() } } )
- AADD( a_Options, { "VS_PackAll() ", {||ShowFunc("VS_PackAll()" ),Sorry() } } )
- AADD( a_Options, { "VS_PopDbf() ", {||ShowFunc("VS_PopDbf()" ),Sorry() } } )
- AADD( a_Options, { "VS_PrintNtx() ", {||ShowFunc("VS_PrintNtx()" ),Sorry() } } )
- AADD( a_Options, { "VS_PushDbf() ", {||ShowFunc("VS_PushDbf()" ),Sorry() } } )
- AADD( a_Options, { "VS_RLock() ", {||ShowFunc("VS_RLock()" ),Sorry() } } )
- AADD( a_Options, { "VS_SemaMins() ", {||ShowFunc("VS_SemaMins() "),Sorry() } } )
- AADD( a_Options, { "VS_SemaPhore()", {||ShowFunc("VS_SemaPhore()"),Sorry() } } )
- AADD( a_Options, { "VS_SetOrder() ", {||ShowFunc("VS_SetOrder()" ),Sorry() } } )
- AADD( a_Options, { "VS_SetPath() ", {||ShowFunc("VS_SetPath()" ),Sorry() } } )
- AADD( a_Options, { "VS_ShowNtx() ", {||ShowFunc("VS_ShowNtx()" ),D_ShowNtx()} } )
- AADD( a_Options, { "VS_Use() ", {||ShowFunc("VS_Use()" ),Sorry() } } )
-
- AADD( a_Menu, { "DataBase", a_Options } )
-
-
- *══ Printers ══════════════════════════════════════════════*
- a_Options := {}
-
- AADD( a_Options, { "VS_Black() ", {||ShowFunc("VS_Black()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Blue() ", {||ShowFunc("VS_Blue()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Bold() ", {||ShowFunc("VS_Bold()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_BoldOff() ", {||ShowFunc("VS_BoldOff()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_BoldOn() ", {||ShowFunc("VS_BoldOn()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Cond() ", {||ShowFunc("VS_Cond()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_CondOff() ", {||ShowFunc("VS_CondOff()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_CondOn() ", {||ShowFunc("VS_CondOn()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_CvtCode() ", {||ShowFunc("VS_CvtCode()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Dbl() ", {||ShowFunc("VS_Dbl()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_DblOff() ", {||ShowFunc("VS_DblOff()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_DblOn() ", {||ShowFunc("VS_DblOn()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Draft() ", {||ShowFunc("VS_Draft()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_FormFeed()", {||ShowFunc("VS_FormFeed()"),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Green() ", {||ShowFunc("VS_Green()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_InitPrtr()", {||ShowFunc("VS_InitPrtr()"),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Ital() ", {||ShowFunc("VS_Ital()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_ItalOff() ", {||ShowFunc("VS_ItalOff()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_ItalOn() ", {||ShowFunc("VS_ItalOn()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_LineFeed()", {||ShowFunc("VS_LineFeed()"),D_PrtFunc() } } )
- AADD( a_Options, { "VS_LinesPg() ", {||ShowFunc("VS_LinesPg()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Nlq() ", {||ShowFunc("VS_Nlq()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Orange() ", {||ShowFunc("VS_Orange()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_PrintTst()", {||ShowFunc("VS_PrintTst()"),D_PrintTst()} } )
- AADD( a_Options, { "VS_PrtMsg() ", {||ShowFunc("VS_PrtMsg()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Purple() ", {||ShowFunc("VS_Purple()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Red() ", {||ShowFunc("VS_Red()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Reset() ", {||ShowFunc("VS_Reset()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Und() ", {||ShowFunc("VS_Und()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_UndOff() ", {||ShowFunc("VS_UndOff()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_UndOn() ", {||ShowFunc("VS_UndOn()" ),D_PrtFunc() } } )
- AADD( a_Options, { "VS_Yellow() ", {||ShowFunc("VS_Yellow()" ),D_PrtFunc() } } )
-
- AADD( a_Menu, { "Printers", a_Options } )
-
-
- *══ Security ══════════════════════════════════════════════*
-
- a_Options := {}
-
- AADD( a_Options, { "VS_ChkAuth() ", {||ShowFunc("VS_ChkAuth()" ),Sorry() } } )
- AADD( a_Options, { "VS_Decrypt() ", {||ShowFunc("VS_Decrypt()" ),Sorry() } } )
- AADD( a_Options, { "VS_Encrypt() ", {||ShowFunc("VS_Encrypt()" ),Sorry() } } )
- AADD( a_Options, { "VS_Initials()", {||ShowFunc("VS_Initials()"),Sorry() } } )
- AADD( a_Options, { "VS_Login() ", {||ShowFunc("VS_Login()" ),Sorry() } } )
- AADD( a_Options, { "VS_MntPwd() ", {||ShowFunc("VS_MntPwd()" ),Sorry() } } )
- AADD( a_Options, { "VS_UserName()", {||ShowFunc("VS_UserName()"),Sorry() } } )
-
- AADD( a_Menu, { "Security", a_Options } )
-
-
- *══ Other ═════════════════════════════════════════════════*
-
- AADD( a_Menu, { "Other", { ;
- { "Ordering Information", {||OrdrInfo() } }, ;
- { "Technical Support ", {||TechSupp() } }, ;
- { "Special Thanks ", {||ThankYou() } }, ;
- { "Quit - Leave Demo ", {||Adios() } } ;
- } ;
- } )
-
-
- *══ Here we go... ═════════════════════════════════════════*
-
- DO WHILE .T. // Just for Kent! <Grin>
-
- VS_Menu( a_Menu, ac_Title )
-
- ENDDO
-
- *══════════════════════════════════════════════════════════*
-
- RETURN(NIL)
- *** EOF: ********************************************************************
-
-
-
- FUNCTION Sorry()
- *****
- * Tell the user that there is no way to demonstrate a function
- *****
-
- VS_Tell(2,0,"",PADC("Sorry... There Is No Way To Demonstrate This",50), ;
- PADC("Function From A Visual Perspective.",50),"")
-
- RETURN(NIL)
- *** EOF: Sorry() ************************************************************
-
-
- FUNCTION OrdrInfo()
- *****
- * Ordering Information
- *****
- LOCAL ac_Msg[11]
-
- VS_GRABSCR()
- VS_PALETTE(4)
- ac_Msg[01] = " For complete pricing and product information please contact: "
- ac_Msg[02] = " "
- ac_Msg[03] = " FrontLine Software "
- ac_Msg[04] = " 2908 Forest Hollow Lane, #2329 "
- ac_Msg[05] = " Arlington, TX 76006 "
- ac_Msg[06] = " Ph: (214) 283-3282 - Voice "
- ac_Msg[07] = " Ph: (817) 695-0058 - Modem "
- ac_Msg[08] = " "
- ac_Msg[09] = " FidoNet 1:124/4003.0 "
- ac_Msg[10] = " CompuServe: 72240,3122 "
- ac_Msg[11] = " ClipMail: CLIPBRD_HOME "
- VS_MSG(ac_Msg,11,""," Press any key to continue ",5)
- INKEY(0)
- VS_PUTSCR()
-
- RETURN(NIL)
- *** EOF: OrdrInfo() *********************************************************
-
-
- FUNCTION TechSupp()
- *****
- * Technical Support
- *****
- LOCAL ac_Msg[15]
-
- VS_GRABSCR()
- VS_PALETTE(4)
- ac_Msg[01] = " Technical Support for The Vern Six Clipper ToolBox is provided "
- ac_Msg[02] = " free of charge via a number of avenues... The author (Vernon E. "
- ac_Msg[03] = " Six, Jr.) can be reached on the ClipBoard Home BBS at "
- ac_Msg[04] = " 817/695-0058 (24hrs, 38400 baud USR HST Dual Standard) or at "
- ac_Msg[05] = " FidoNet Address 1:124/4003.0, CompuServe: 72240,3122 and "
- ac_Msg[06] = " ClipMail: CLIPBRD_HOME. "
- ac_Msg[07] = " "
- ac_Msg[08] = " Techinal Support (via one of the above 'Electronic Mediums') is "
- ac_Msg[09] = " provided free of charge to registered users on a 'As Time "
- ac_Msg[10] = " Permits' basis. Registered users are also entitled to ninety "
- ac_Msg[11] = " (90) days of live (voice) technical support by calling "
- ac_Msg[12] = " 214/283-3282 8a-6p Monday through Friday. "
- ac_Msg[13] = " "
- ac_Msg[14] = " Additional live techincal support can be purchased at $100.00 "
- ac_Msg[15] = " per hour with a half-hour minimum."
- VS_MSG(ac_Msg,15,""," Press any key to continue ")
- INKEY(0)
- VS_PUTSCR()
-
- RETURN(NIL)
- *** EOF: TechSupp() *********************************************************
-
-
-
- FUNCTION ThankYou()
- *****
- * Special Thanks
- *****
- LOCAL ac_Msg[14]
-
- VS_GRABSCR()
- VS_PALETTE(4)
- ac_Msg[01] = " A special note of thanks is due to three of the most "
- ac_Msg[02] = " important people in my life... my best friend/wife Norma "
- ac_Msg[03] = " and my two good friends Frank Grubbs and Jerry Eckler for "
- ac_Msg[04] = " their never ending support. "
- ac_Msg[05] = " "
- ac_Msg[06] = " If it weren't for Frank and Jerry's continual testing and "
- ac_Msg[07] = " support, this library would quite certainly never have been "
- ac_Msg[08] = " published. "
- ac_Msg[09] = " "
- ac_Msg[10] = " If it weren't for my wife's never ending support and love "
- ac_Msg[11] = " (and willingness to be without her husband for extended "
- ac_Msg[12] = " periods of time) this and all my other ShareWare products "
- ac_Msg[13] = " would have died a sudden death long before the first line "
- ac_Msg[14] = " of code was ever written! "
- VS_MSG(ac_Msg,14,""," Press any key to continue ")
- INKEY(0)
- VS_PUTSCR()
-
- RETURN(NIL)
- *** EOF: ThankYou() *********************************************************
-
-
-
- FUNCTION Adios()
- *****
- * We're all done!
- *****
- LOCAL n_Top
-
- dbCloseAll()
-
- DispBegin()
-
- VS_TxtColr()
- VS_NewScrn()
-
- n_Top := 3
-
- VS_Wind(n_Top,8,n_Top+11,72,""," Press Any Key To Exit ")
-
- @ n_Top+1,10 SAY PADC("Vern Six's Clipper ToolBox v8.04 Fri 10-11-1991",60)
- @ n_Top+2,10 SAY PADC("",60)
- @ n_Top+3,10 SAY PADC("Copyright (c) 1991 by Vernon E. Six, Jr.",60)
- @ n_Top+4,10 SAY PADC("All Rights Reserved World Wide",60)
- @ n_Top+5,10 SAY PADC("",60)
- @ n_Top+6,10 SAY PADC("Vernon E. Six, Jr.",60)
- @ n_Top+7,10 SAY PADC("2908 Forest Hollow Lane #2329",60)
- @ n_Top+8,10 SAY PADC("Arlington, Texas 76006",60)
- @ n_Top+9,10 SAY PADC("Ph: (214) 283-3282 - VOICE",60)
- @ n_Top+10,10 SAY PADC("Ph: (817) 695-0058 - BBS",60)
-
- n_Top := 18
-
- VS_Wind(n_Top,8,n_Top+2,72,"","")
-
- @ n_Top+1,10 SAY PADC("Thank You For Choosing Vern Six's Products!",60)
-
- DispEnd()
-
- VS_Inkey(15)
-
- VS_TxtColr()
- Clear Screen
- QOut( "Vern Six's Clipper ToolBox v8.04" )
- QOut( "CopyRight (c) 1991 by Vernon E. Six, Jr." )
- QOut( "All Rights Reserved World Wide" )
- QOut( "" )
- QOut( "For More Information Or For Assistance, Please Call" )
- QOut( "The ClipBoard Home BBS (a/k/a *THE* Clipper Hang-Out)" )
- QOut( "at 817/695-0058, 1200-38400baud, USR Dual Standard, 24hrs")
- QOut( "" )
- QOut( "Access to The ClipBoard Home BBS (tm) is *FREE* and you" )
- QOut( "can download up to one mega-byte on your first call!!" )
- QOut( "230 mega-bytes of nothing but Clipper Goodies online!" )
- QOut( "" )
- QUIT
-
- *** EOF: Adios() ************************************************************
-
-
-
-
- FUNCTION BrowseIt( pac_Text )
- *****
- * Common function to browse text from D_* functions
- *****
- LOCAL n_Element := 1
- LOCAL o_Browse
- LOCAL o_Column
- LOCAL n_Key := 0
- LOCAL n_Cntr := 0
- LOCAL n_BarLine := 1
-
- *****
- * Draw the window and place the scroll bar on there
- *****
- VS_GrabScr()
-
- VS_Palette(5) // Pick Lists, etc.
-
- VS_WndColr()
-
- o_Browse := TBrowseNew( 3,3,21,74 )
- o_Column := TBColumnNew(, {||pac_Text[n_Element]})
-
- o_Browse:goTopBlock := {|| n_Element := 1}
- o_Browse:goBottomBlock := {|| n_Element := LEN(pac_Text) }
- o_Browse:SkipBlock := {|n|VS_ArraySkip(LEN(pac_Text),@n_Element,n)}
- o_Browse:AutoLite := .F.
-
- o_Browse:AddColumn(o_Column)
-
- SETCURSOR(SC_NONE)
-
-
- DispBegin()
-
- VS_Wind(2,2,22,76,""," Press <Esc> To Exit ")
-
- @ 3,75 SAY ""
-
- FOR n_Cntr = 4 TO 20
- @ n_Cntr,75 SAY "░"
- NEXT n_Cntr
-
- @ 21,75 SAY ""
-
- DispEnd()
-
-
- DO WHILE .T.
-
- DispBegin()
-
- DO WHILE .NOT. o_Browse:Stabilize()
- ENDDO
-
- @ 3+n_BarLine,75 SAY "░"
- n_BarLine = VS_ScrlBar(n_Element,17,LEN(pac_Text))
- @ 3+n_BarLine,75 SAY "█"
-
- DispEnd()
-
- n_Key = INKEY(0)
-
- DO CASE
-
- CASE n_Key = K_UP
- o_Browse:up()
-
- CASE n_Key = K_DOWN
- o_Browse:down()
-
- CASE n_Key = K_PGUP
- o_Browse:PageUp()
-
- CASE n_Key = K_PGDN
- o_Browse:PageDown()
-
- CASE n_Key = K_ESC
- EXIT
-
- ENDCASE
-
- ENDDO
-
- VS_PutScr()
-
- RETURN(NIL)
- *** EOF: BrowseIt() *********************************************************
-
-
- FUNCTION ShowFunc( pc_FuncName )
- *****
- * Returns an array of text about the specified function name
- *****
- LOCAL ac_Text := {}
-
-
- IF .NOT. VERNSIX->( dbSeek( pc_FuncName ) )
- VS_Tell(3,10,"",PADC("Function Not Found!",40),"")
- RETURN(NIL)
- ENDIF
-
-
- VS_Text(2,"",PADC("Working...",30),"")
-
-
- *═══════════════════════════════════════════════════════════════*
-
- AADD( ac_Text, VERNSIX->FUNC_NAME + SPACE(6) + VERNSIX->SHORT )
- AADD( ac_Text, "" )
-
-
- *═══════════════════════════════════════════════════════════════*
-
- c_Text = StrTran( StrTran( VERNSIX->DESC, "^U", "" ), "^B", "" )
-
- AADD( ac_Text, "Description:" )
- AADD( ac_Text, "" )
-
- FOR n_Cntr = 1 TO MLCOUNT(c_Text,60)
- AADD( ac_Text, SPACE(3) + MemoLine( c_Text, 60, n_Cntr ) )
- NEXT n_Cntr
-
- AADD( ac_Text, "" )
-
-
-
- *═══════════════════════════════════════════════════════════════*
-
- c_Text = StrTran( StrTran( VERNSIX->SYNTAX, "^U", "" ), "^B", "" )
-
- AADD( ac_Text, "Syntax:" )
- AADD( ac_Text, "" )
-
- FOR n_Cntr = 1 TO MLCOUNT(c_Text,60)
- AADD( ac_Text, SPACE(3) + MemoLine( c_Text, 60, n_Cntr ) )
- NEXT n_Cntr
-
- AADD( ac_Text, "" )
-
-
-
- *═══════════════════════════════════════════════════════════════*
-
- c_Text = StrTran( StrTran( VERNSIX->PASS, "^U", "" ), "^B", "" )
-
- AADD( ac_Text, "Pass:" )
- AADD( ac_Text, "" )
-
- FOR n_Cntr = 1 TO MLCOUNT(c_Text,60)
- AADD( ac_Text, SPACE(3) + MemoLine( c_Text, 60, n_Cntr ) )
- NEXT n_Cntr
-
- AADD( ac_Text, "" )
-
-
-
- *═══════════════════════════════════════════════════════════════*
-
- c_Text = StrTran( StrTran( VERNSIX->RETURN, "^U", "" ), "^B", "" )
-
- AADD( ac_Text, "Return:" )
- AADD( ac_Text, "" )
-
- FOR n_Cntr = 1 TO MLCOUNT(c_Text,60)
- AADD( ac_Text, SPACE(3) + MemoLine( c_Text, 60, n_Cntr ) )
- NEXT n_Cntr
-
- AADD( ac_Text, "" )
-
-
-
- *═══════════════════════════════════════════════════════════════*
-
- c_Text = StrTran( StrTran( VERNSIX->NOTES, "^U", "" ), "^B", "" )
-
- AADD( ac_Text, "Notes:" )
- AADD( ac_Text, "" )
-
- FOR n_Cntr = 1 TO MLCOUNT(c_Text,60)
- AADD( ac_Text, SPACE(3) + MemoLine( c_Text, 60, n_Cntr ) )
- NEXT n_Cntr
-
- AADD( ac_Text, "" )
-
-
-
- *═══════════════════════════════════════════════════════════════*
-
- c_Text = StrTran( StrTran( VERNSIX->EXAMPLE, "^U", "" ), "^B", "" )
-
- AADD( ac_Text, "Example:" )
- AADD( ac_Text, "" )
-
- FOR n_Cntr = 1 TO MLCOUNT(c_Text,60)
- AADD( ac_Text, SPACE(3) + MemoLine( c_Text, 60, n_Cntr ) )
- NEXT n_Cntr
-
- AADD( ac_Text, "" )
-
-
-
- *═══════════════════════════════════════════════════════════════*
-
- c_Text = StrTran( StrTran( VERNSIX->USAGE, "^U", "" ), "^B", "" )
-
- AADD( ac_Text, "Usage:" )
- AADD( ac_Text, "" )
-
- FOR n_Cntr = 1 TO MLCOUNT(c_Text,60)
- AADD( ac_Text, SPACE(3) + MemoLine( c_Text, 60, n_Cntr ) )
- NEXT n_Cntr
-
- AADD( ac_Text, "" )
-
-
-
- *═══════════════════════════════════════════════════════════════*
-
- c_Text = StrTran( StrTran( VERNSIX->SEEALSO, "^U", "" ), "^B", "" )
-
- AADD( ac_Text, "See Also:" )
- AADD( ac_Text, "" )
-
- FOR n_Cntr = 1 TO MLCOUNT(c_Text,60)
- AADD( ac_Text, SPACE(3) + MemoLine( c_Text, 60, n_Cntr ) )
- NEXT n_Cntr
-
- AADD( ac_Text, "" )
-
-
-
- *═══════════════════════════════════════════════════════════════*
-
- VS_EndText()
-
- BrowseIt( ac_Text )
-
- RETURN(NIL)
- *** EOF: ShowFunc() *********************************************************
-
-
-
- *══════════════════════════════════════════════════════════*
- * Here is really where the demonstration of the functions *
- * take place *
- *══════════════════════════════════════════════════════════*
-
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_CfgFile()
-
- VS_Tell(2,0,"",PADC("VS_CfgFile() currently returned a value of... ",60),;
- PADC(VS_CfgFile(),60),"")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_DecTo36()
- LOCAL n_Temp := 0
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- SETCURSOR(SC_NORMAL)
-
- VS_Wind(10,18,14,62,"","")
-
- @ 12,20 SAY "Please Enter A Numeric Value: " GET n_Temp
- READ
-
- VS_PutScr()
-
-
- VS_Tell(2,0,"",PADC("Your number converted to...",60), ;
- PADC(VS_DecTo36(n_Temp),60), "")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Die()
-
- VS_Die( PADC("This Is An Example Of VS_Die()",50),"", ;
- PADC("It Has Been Fun!! See Ya!",50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_FileSel()
- LOCAL c_FileName := ""
-
- CLEAR TYPEAHEAD
-
- VS_GrabScr()
-
- VS_Palette(5)
-
- c_FileName = VS_FileSel("*.*",5,5,15,"","")
-
- VS_PutScr()
-
- VS_Tell( 2,0,PADC("You Selected...",40), PADC(ALLTRIM(c_FileName),40) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Random()
- LOCAL n_Temp := 0
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- SETCURSOR(SC_NORMAL)
-
- VS_Wind(10,18,14,62,"","")
-
- @ 12,20 SAY "Please Enter A Numeric Value: " GET n_Temp
- READ
-
- VS_PutScr()
-
- VS_Tell(2,0, PADC("VS_Random() Currently Returned...",50), ;
- PADC(ALLTRIM(STR(VS_Random(n_Temp,6))),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Unique()
-
- VS_Tell(2,0, PADC("VS_Unique() Currently Returned...",50), ;
- PADC(VS_Unique(),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Version()
-
- VS_Tell(2,0, PADC("VS_Version() Currently Returned...",50), ;
- PADC(VS_Version(),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Alert()
- LOCAL ac_Text := { PADC("This is a demonstration of VS_Alert()",50), ;
- PADC("What Do You Think So Far?",50) }
-
- LOCAL ac_Buttons := { "Don't Know", "Don't Care", "Cancel" }
-
- LOCAL n_Button := 0
-
-
- n_Button = VS_Alert( ac_Text, ac_Buttons, 2 )
-
- VS_Tell(2,0,"",PADC("You Pressed Button #"+ALLTRIM(STR(n_Button)),50),"")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Ask()
-
- LOCAL c_Choice
-
- c_Choice = VS_Ask("Demo of VS_Ask: Do you like what you see so far","YyNn")
-
- VS_Tell(2,0,"",PADC("You Selected "+IF(c_Choice$"Yy","Yes","No"),40),"")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Ask2()
-
- LOCAL c_Choice
-
- c_Choice = VS_Ask2( { "This is a demo of VS_Ask2()", ;
- "Do you like what you see so far" }, 2,"","","YyNn" )
-
- VS_Tell(2,0,"",PADC("You Selected "+IF(c_Choice$"Yy","Yes","No"),40),"")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_BoxStr()
-
- VS_Tell(2,0,PADC("Currently VS_BoxStr() returned...",50),;
- PADC(VS_BoxStr(),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Color()
- LOCAL n_Palette := 0
- LOCAL ac_Palettes := { " Normal Text & Windows ",;
- " Help Messages ",;
- " Error Messages ",;
- " Network I/O Messages ",;
- " Pick Lists ",;
- " Secondary Pick Lists ",;
- " Input Panels ",;
- " Alert Boxes ",;
- " Anything you want " }
-
- VS_GrabScr()
-
- VS_Wind(6,26,16,56," Which palette? ","")
-
- n_Palette = ACHOICE(7,28,15,54,ac_Palettes)
-
- IF n_Palette >= 1 .AND. n_Palette <= 9
-
- VS_Palette(n_Palette)
- VS_Color()
-
- ENDIF
-
- VS_PutScr()
-
- VS_TxtColr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Correct()
- LOCAL n_Choice := 0
-
- n_Choice = VS_Correct()
-
- VS_Tell(2,0,"",PADC("You Selected...",40),PADC( {"Yes","No","Cancel"}[n_Choice],40))
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Dim()
-
- VS_Tell(2,0,"",PADC("VS_Dim() is used by every window function",50), ;
- PADC("to create the 'shadow' effect.",50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Dol2Str()
-
- LOCAL n_Temp := 0
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- SETCURSOR(SC_NORMAL)
-
- VS_Wind(10,18,14,62,"","")
-
- @ 12,20 SAY "Please Enter A Numeric Value: " GET n_Temp
- READ
-
- VS_PutScr()
-
- VS_Tell(2,0, PADC("Your Number Converted To...",50), ;
- PADC(VS_Dol2Str(n_Temp),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Dte2Txt()
-
- LOCAL d_Temp := DATE()
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- SETCURSOR(SC_NORMAL)
-
- VS_Wind(10,20,14,59,"","")
-
- @ 12,22 SAY "Please Enter A Date Value: " GET d_Temp
- READ
-
- VS_PutScr()
-
- VS_Tell( 2,0,"",PADC("Your Date Converted To...",50) , ;
- PADC("Style #1... "+VS_Dte2Txt(d_Temp,1),50), ;
- PADC("Style #2... "+VS_Dte2Txt(d_Temp,2),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Edit()
- *****
- * Demonstrate VEDIT() use
- *****
- LOCAL c_Filter := ""
- LOCAL n_Key := 0
- LOCAL c_Temp := ""
- LOCAL c_Last
- LOCAL c_Frst
- LOCAL c_Mid
- LOCAL c_Title
- LOCAL c_SubTitle
- LOCAL c_Publisher
- LOCAL c_CityState
- LOCAL c_Year
- LOCAL c_Class
- LOCAL c_Location
- LOCAL c_Comment1
- LOCAL c_Comment2
- LOCAL c_Comment3
- LOCAL l_Update := .F.
- LOCAL l_Destroyed := .T.
-
- VS_GrabScr()
-
- VS_Palette(1)
- VS_NewScrn()
-
- SAMPLE->( dbClearFilter() )
- SAMPLE->( dbGoTop() )
-
- //
- // Main VS_Edit() Loop
- //
- DO WHILE .T.
-
- *══════════════════════════════════════════════════════════*
- //
- // Display the current record
- //
- IF l_Destroyed
-
- VS_TxtColr()
- CLEAR SCREEN
-
- //
- // Display the text shell
- //
- @ 01,00 SAY [╒══════════════════════════════════════════════════════════════════════════════╕]
- @ 02,00 SAY [│ Sample Library Database │]
- @ 03,00 SAY [╞══════════════════════════════════════════════════════════════════════════════╡]
- @ 04,00 SAY [│ About the author... │]
- @ 05,00 SAY [│ Last Name: First Name: │]
- @ 06,00 SAY [│ │]
- @ 07,00 SAY [│ About the book... │]
- @ 08,00 SAY [│ Title: │]
- @ 09,00 SAY [│ Sub-Title: │]
- @ 10,00 SAY [│ │]
- @ 11,00 SAY [│ Publisher: City, St: │]
- @ 12,00 SAY [│ │]
- @ 13,00 SAY [│ Year: Class: Location: │]
- @ 14,00 SAY [│ │]
- @ 15,00 SAY [│ Comments... │]
- @ 16,00 SAY [│ │]
- @ 17,00 SAY [│ │]
- @ 18,00 SAY [│ │]
- @ 19,00 SAY [│ │]
- @ 20,00 SAY [╞══════════════════════════════════════════════════════════════════════════════╡]
- @ 21,00 SAY [│ │]
- @ 22,00 SAY [│ │]
- @ 23,00 SAY [│ │]
- @ 24,00 SAY [╘══════════════════════════════════════════════════════════════════════════════╛]
-
- l_Destroyed = .F.
-
- ENDIF
-
- //
- // Buffer the screen I/O for smooth display
- //
- DispBegin()
-
- @ 02,60 SAY " *** View Mode *** "
-
- IF RECNO() <= LASTREC()
-
- c_temp="Record # "+LTRIM( STR( SAMPLE->(RECNO()) ) )
- IF SAMPLE->( Deleted() )
- c_temp=c_temp+[*]
- ELSE
- c_temp=c_temp+[ ]
- ENDIF
- c_temp=c_temp+" of "+LTRIM( STR( SAMPLE->(RECCOUNT()) ) )+" "
- @ 02,02 SAY c_temp
-
- // Make SAY fields same color as GETs
- SetColor( VS_TextUns() )
-
- @ 05,14 SAY SAMPLE->AUTHORLAST
- @ 05,49 SAY SAMPLE->AUTHORFRST
- @ 05,65 SAY SAMPLE->AUTHORMID
- @ 08,14 SAY SAMPLE->TITLE
- @ 09,14 SAY SAMPLE->SUBTITLE
- @ 11,14 SAY SAMPLE->PUBLISHER
- @ 11,56 SAY SAMPLE->CITYSTATE
- @ 13,14 SAY SAMPLE->YEAR
- @ 13,32 SAY SAMPLE->CLASS
- @ 13,64 SAY SAMPLE->LOCATION
- @ 16,04 SAY SAMPLE->COMMENT1
- @ 17,04 SAY SAMPLE->COMMENT2
- @ 18,04 SAY SAMPLE->COMMENT3
-
- VS_TxtColr()
-
- ELSE
-
- @ 02,02 SAY "No records in database"
- SAMPLE->( dbGoBottom() )
- SAMPLE->( dbSkip() )
-
- ENDIF
-
- @ 21,00 SAY [│ Esc - Exit F10 - Colors Home - First Rtrn - Edit │]
- @ 22,00 SAY [│ F1 - Help PgDn - Next End - Last Del - Delete │]
- @ 23,00 SAY [│ F9 - Filter Pgup - Previous Alpha - Seek Ins - Append │]
-
- *══════════════════════════════════════════════════════════*
-
- SetCursor( SC_NONE )
-
- DispEnd()
-
-
-
- //
- // This is where all the magic takes place
- //
- n_Key = SAMPLE->( VS_Edit(.T.) )
-
-
-
- DO CASE
-
- //
- // Edit Current Record or Add a New Record
- //
- CASE n_Key = K_ENTER .OR. n_Key = K_INS
-
- IF n_Key = K_ENTER
- @ 02,60 SAY " *** Edit Mode *** "
- ELSE
- @ 02,60 SAY "*** Insert Mode ***"
- ENDIF
-
- @ 21,00 SAY "│ F1 - Help End - End of line ^T - Del word Del - Del Char │"
- @ 22,00 SAY "│ ESC - Abort Edit ^Home - First field ^Y - Del to EOL Ins - Insert │"
- @ 23,00 SAY "│ Home - Beg of line ^End - Last field ^U - Ooops PgDn - Save │"
-
- c_Last = IF( n_Key=K_ENTER, SAMPLE->AUTHORLAST,SPACE(20) )
- c_Frst = IF( n_Key=K_ENTER, SAMPLE->AUTHORFRST,SPACE(15) )
- c_Mid = IF( n_Key=K_ENTER, SAMPLE->AUTHORMID ,SPACE(13) )
- c_Title = IF( n_Key=K_ENTER, SAMPLE->TITLE ,SPACE(60) )
- c_SubTitle = IF( n_Key=K_ENTER, SAMPLE->SUBTITLE ,SPACE(60) )
- c_Publisher = IF( n_Key=K_ENTER, SAMPLE->PUBLISHER ,SPACE(30) )
- c_CityState = IF( n_Key=K_ENTER, SAMPLE->CITYSTATE ,SPACE(20) )
- c_Year = IF( n_Key=K_ENTER, SAMPLE->YEAR ,SPACE(09) )
- c_Class = IF( n_Key=K_ENTER, SAMPLE->CLASS ,SPACE(20) )
- c_Location = IF( n_Key=K_ENTER, SAMPLE->LOCATION ,SPACE(05) )
- c_Comment1 = IF( n_Key=K_ENTER, SAMPLE->COMMENT1 ,SPACE(72) )
- c_Comment2 = IF( n_Key=K_ENTER, SAMPLE->COMMENT2 ,SPACE(72) )
- c_Comment3 = IF( n_Key=K_ENTER, SAMPLE->COMMENT3 ,SPACE(72) )
-
- @ 05,14 GET c_Last
- @ 05,49 GET c_Frst
- @ 05,65 GET c_Mid
- @ 08,14 GET c_Title
- @ 09,14 GET c_SubTitle
- @ 11,14 GET c_Publisher
- @ 11,56 GET c_CityState
- @ 13,14 GET c_Year
- @ 13,32 GET c_Class
- @ 13,64 GET c_Location
- @ 16,04 GET c_Comment1
- @ 17,04 GET c_Comment2
- @ 18,04 GET c_Comment3
-
- SetCursor( SC_NORMAL )
- READ
- SetCursor( SC_NONE )
-
- //
- // Only update the record if the user didn't abort!
- //
- IF LASTKEY() <> K_ESC
-
- IF n_Key = K_ENTER
- l_Update = SAMPLE->(VS_RLock())
- ELSE
- l_Update = SAMPLE->(VS_Append())
- ENDIF
-
- IF l_Update
-
- REPLACE SAMPLE->AUTHORLAST WITH c_Last
- REPLACE SAMPLE->AUTHORFRST WITH c_Frst
- REPLACE SAMPLE->AUTHORMID WITH c_Mid
- REPLACE SAMPLE->TITLE WITH c_Title
- REPLACE SAMPLE->SUBTITLE WITH c_SubTitle
- REPLACE SAMPLE->PUBLISHER WITH c_Publisher
- REPLACE SAMPLE->CITYSTATE WITH c_CityState
- REPLACE SAMPLE->YEAR WITH c_Year
- REPLACE SAMPLE->CLASS WITH c_Class
- REPLACE SAMPLE->LOCATION WITH c_Location
- REPLACE SAMPLE->COMMENT1 WITH c_Comment1
- REPLACE SAMPLE->COMMENT2 WITH c_Comment2
- REPLACE SAMPLE->COMMENT3 WITH c_Comment3
-
- SAMPLE->( dbUnlock() )
-
- ENDIF
-
- ENDIF
-
- //
- // Delete current record
- //
- CASE n_Key = K_DEL
-
- IF SAMPLE->( VS_RLock() )
-
- IF SAMPLE->( Deleted() )
- SAMPLE->( dbRecall() )
- ELSE
- SAMPLE->( dbDelete() )
- ENDIF
-
- SAMPLE->( dbUnlock() )
-
- ENDIF
-
-
- //
- // All Done!
- //
- CASE n_Key = K_ESC
-
- EXIT
-
-
- //
- // Change Colors
- //
- CASE n_Key = K_F10
-
- D_Color()
- l_Destroyed = .T. // Force Screen to Re-Draw
-
-
- //
- // Let the user define a filter
- //
- CASE n_Key = K_F9
-
- c_Filter = SAMPLE->(VS_Filt())
-
- IF .NOT. EMPTY(c_Filter)
- SAMPLE->( dbSetFilter( &("{||"+c_Filter+"}"), c_Filter ) )
- ELSE
- SAMPLE->( dbClearFilter() )
- ENDIF
-
- SAMPLE->( dbGoTop() )
-
-
- //
- // Something else was pressed... see if it is a hotkey
- //
- OTHERWISE
-
- IF .NOT. (b_KeyBlock := SetKey(n_Key)) == NIL
- EVAL( b_KeyBlock,ProcName(1),ProcLine(1),"D_Edit()" )
- ENDIF
-
- ENDCASE
-
- ENDDO
-
- //
- // Make sure the Filter is gone
- //
- SAMPLE->( dbClearFilter() )
- SAMPLE->( dbGoTop() )
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Filt()
-
- LOCAL c_Filter
- LOCAL n_Cntr
-
- c_Filter = SAMPLE->(VS_Filt())
-
- VS_GrabScr()
-
- VS_Palette(2)
-
- VS_Wind(7,13,9+MIN(MLCOUNT(c_Filter,50),10),67,""," Press Any Key To Continue ")
-
- @ 8,15 SAY PADC("Your Filter Came Back As...",50)
-
- FOR n_Cntr = 1 TO MIN(MLCOUNT(c_Filter,50),10)
-
- @ 8+n_Cntr,15 SAY PADC( MemoLine(c_Filter,50,n_Cntr), 50 )
-
- NEXT n_Cntr
-
- VS_Inkey(0)
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_GrabPut()
-
- VS_GrabScr()
-
- VS_Palette(2)
-
- VS_Wind(9,8,14,72,""," Press Any Key To Continue ")
-
- @ 11,10 SAY PADC("The screen has been messed up by the placement",60)
- @ 12,10 SAY PADC("of this window. Press any key and it will be restored.",60)
-
- VS_Inkey(0)
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Menu()
-
- VS_Tell( 2,0, "", PADC("VS_Menu() is the heart and soul of VERNDEMO.PRG",60), ;
- PADC("Please study VERNDEMO.PRG to see how VS_Menu() works.",60) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Msg()
-
- LOCAL ac_Msg := { PADC("This is a an example of VS_Msg",60) }
-
- VS_GrabScr()
-
- VS_Palette(2)
-
- VS_Msg(ac_Msg,1,""," Press Any Key To Continue ")
-
- VS_Inkey(0)
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_NewScrn()
-
- VS_Tell(2,0,"",PADC("VS_NewScrn() is a replacement for CLEAR SCREEN",60),;
- PADC("VS_NewScrn() produces the nice background that you now see.",60) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_NoOther()
-
- LOCAL c_Temp := "GRUBBS" + SPACE(14)
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- VS_Wind(08,13,16,67,""," Press <Esc> To Exit ")
-
- @ 10,15 SAY PADC("This is a demonstration of VS_NoOther()",50)
- @ 11,15 SAY PADC("Type the word 'GRUBBS' at the prompt below",50)
- @ 12,15 SAY PADC("to see VS_NoOther() come to life",50)
-
- @ 14,20 SAY "Author's Last Name: " GET c_Temp ;
- PICTURE "@!" VALID SAMPLE->(VS_NoOther(@c_Temp))
-
- SetCursor(SC_NORMAL)
- READ
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_NotEmpty()
-
- LOCAL c_Temp := SPACE(20)
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- VS_Wind(08,13,16,67,""," Press <Esc> To Exit ")
-
- @ 10,15 SAY PADC("This is a demonstration of VS_NotEmpty()",50)
- @ 11,15 SAY PADC("Press [Return] at the prompt below",50)
- @ 12,15 SAY PADC("to see VS_NotEmpty() come to life",50)
-
- @ 14,17 SAY "Enter a non-empty string: " GET c_Temp ;
- PICTURE "@!" VALID VS_NotEmpty(@c_Temp)
-
- SetCursor(SC_NORMAL)
- READ
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_NotNeg()
-
- LOCAL n_Temp := -1
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- VS_Wind(08,13,16,67,""," Press <Esc> To Exit ")
-
- @ 10,15 SAY PADC("This is a demonstration of VS_NotNeg()",50)
- @ 11,15 SAY PADC("Press [Return] at the prompt below",50)
- @ 12,15 SAY PADC("to see VS_NotNeg() come to life",50)
-
- @ 14,17 SAY "Enter a positive number: " GET n_Temp ;
- PICTURE "@!" VALID VS_NotNeg(@n_Temp)
-
- SetCursor(SC_NORMAL)
- READ
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_NotPos()
-
- LOCAL n_Temp := 1
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- VS_Wind(08,13,16,67,""," Press <Esc> To Exit ")
-
- @ 10,15 SAY PADC("This is a demonstration of VS_NotPos()",50)
- @ 11,15 SAY PADC("Press [Return] at the prompt below",50)
- @ 12,15 SAY PADC("to see VS_NotPos() come to life",50)
-
- @ 14,17 SAY "Enter a negative number: " GET n_Temp ;
- PICTURE "@!" VALID VS_NotPos(@n_Temp)
-
- SetCursor(SC_NORMAL)
- READ
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_NotZero()
-
- LOCAL n_Temp := 0
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- VS_Wind(08,13,16,67,""," Press <Esc> To Exit ")
-
- @ 10,15 SAY PADC("This is a demonstration of VS_NotZero()",50)
- @ 11,15 SAY PADC("Press [Return] at the prompt below",50)
- @ 12,15 SAY PADC("to see VS_NotZero() come to life",50)
-
- @ 14,17 SAY "Enter a negative number: " GET n_Temp ;
- PICTURE "@!" VALID VS_NotZero(@n_Temp)
-
- SetCursor(SC_NORMAL)
- READ
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Num2Txt()
-
- LOCAL n_Temp := 0
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- SETCURSOR(SC_NORMAL)
-
- VS_Wind(10,18,14,62,"","")
-
- @ 12,20 SAY "Please Enter A Numeric Value: " GET n_Temp
- READ
-
- VS_PutScr()
-
- VS_Tell(2,0, PADC("Your Number Converted To...",50), ;
- PADC(VS_Num2Txt(n_Temp),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Parse()
-
- LOCAL c_Temp := "TWO WORDS OR MORE "
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- VS_Wind(08,13,16,67,""," Press <Esc> To Exit ")
-
- @ 10,15 SAY PADC("Please enter two words at the prompt below",50)
-
- @ 14,17 SAY "Enter a two or more words: " GET c_Temp
-
- SetCursor(SC_NORMAL)
- READ
-
- VS_PutScr()
-
- VS_Tell(3,0,"",PADC("The first word in your input was...",50),;
- PADC(VS_Parse(c_Temp),50),"" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Pick()
-
- VS_Tell( 2,0, "", PADC("VS_Pick() is a compatibility function, therefore",50), ;
- PADC("You are urged NOT to use it as it may not be a",50), ;
- PADC("part of future release of VernSix5.Lib",50),"")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Proper()
-
- LOCAL c_Temp := SPACE(20)
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- VS_Wind(08,13,16,67,""," Press <Esc> To Exit ")
-
- @ 10,15 SAY PADC("Please enter a lowercase word at the prompt below",50)
-
- @ 14,23 SAY "Enter a word: " GET c_Temp
-
- SetCursor(SC_NORMAL)
- READ
-
- VS_PutScr()
-
- VS_Tell(3,0,"",PADC("The first word in your input was...",50),;
- PADC(VS_Parse(c_Temp),50),"" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_ShdwFill()
-
- VS_Tell(2,0,"",PADC("Currently VS_ShdwFill() returned...",50), ;
- PADC(CHR(16)+VS_ShdwFill()+CHR(17),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_ShdwType()
-
- VS_Tell(2,0,"",PADC("Currently VS_ShdwFill() returned...",50), ;
- PADC(CHR(16)+ALLTRIM(STR(VS_ShdwType()))+CHR(17),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Tell()
-
- VS_Tell(2,0,"",PADC("This is a demonstration of VS_Tell()",50),"")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_TextEnh()
-
- VS_Tell(2,0,"",PADC("VS_TextEnh() currently returned...",50), ;
- PADC( VS_TextEnh(), 50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_TextStd()
-
- VS_Tell(2,0,"",PADC("VS_TextStd() currently returned...",50), ;
- PADC( VS_TextStd(), 50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_TextUns()
-
- VS_Tell(2,0,"",PADC("VS_TextUns() currently returned...",50), ;
- PADC( VS_TextUns(), 50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_VBoxStr()
-
- VS_Tell(2,0,PADC("Currently VS_VBoxStr() returned...",50),;
- PADC(VS_VBoxStr(),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_ValKeys()
-
- LOCAL c_Temp := "B"
-
- VS_GrabScr()
-
- VS_Palette(7)
-
- VS_Wind(08,13,16,67,""," Press <Esc> To Exit ")
-
- @ 10,15 SAY PADC("This is a demonstration of VS_ValKeys()",50)
- @ 11,15 SAY PADC("Press [Return] at the prompt below",50)
- @ 12,15 SAY PADC("to see VS_ValKeys() come to life",50)
-
- @ 14,27 SAY "Enter a letter from A-E: " GET c_Temp ;
- PICTURE "!" VALID VS_ValKeys(@c_Temp,"ABCDE")
-
- SetCursor(SC_NORMAL)
- READ
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Wind()
-
- VS_Tell(2,0,"",PADC("Every window you have seen in this demo",50), ;
- PADC("(including this one) have been created",50), ;
- PADC("using VS_Wind().",50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_WindBox()
-
- VS_Tell(2,0,"",PADC("VS_WindBox() currently returned...",50), ;
- PADC( VS_WindBox(), 50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_WindEnh()
-
- VS_Tell(2,0,"",PADC("VS_WindEnh() currently returned...",50), ;
- PADC( VS_WindEnh(), 50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_WindShdw()
-
- VS_Tell(2,0,"",PADC("VS_WindShdw() currently returned...",50), ;
- PADC( VS_WindShdw(), 50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_WindStd()
-
- VS_Tell(2,0,"",PADC("VS_WindStd() currently returned...",50), ;
- PADC( VS_WindStd(), 50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_WindUns()
-
- VS_Tell(2,0,"",PADC("VS_WindUns() currently returned...",50), ;
- PADC( VS_WindUns(), 50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Help()
-
- VS_Tell(2,0,"",PADC("To see a demonstration of VS_Help(), press the",50),;
- PADC("<F1> key at any time during this demo",50),"")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_MakeHlp()
-
- VS_Tell(2,0,"",PADC("To see a demonstration of VS_MakeHlp(), press",50),;
- PADC("<ALT-H> at any time during this demo",50),"")
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_Browse()
-
- LOCAL n_Key := 0
- LOCAL n_Top := 5
- LOCAL n_Left := 5
- LOCAL n_Bottom := 20
- LOCAL n_Right := 75
- LOCAL c_Title := " Demo of VS_Browse() "
- LOCAL c_Footnote := " Press [Esc] or [Return] to exit "
- LOCAL n_Palette := 5
- LOCAL a_ColObjs := {}
-
- AADD( a_ColObjs, TBColumnNew( "Function - Short Description", ;
- {||FUNC_NAME+[ - ]+SHORT} ) )
-
- n_Key = VERNSIX->( VS_Browse( n_Top, n_Left, n_Bottom, n_Right, c_Title, ;
- c_FootNote, n_Palette, a_ColObjs ) )
-
- VS_Tell(2,0,"",PADC("VS_Browse() currently returned...",50), ;
- PADC(ALLTRIM(STR(n_Key)),50) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_ShowNtx()
-
- VS_Tell(2,0,"",PADC("Press any key to see a demonstration",50), ;
- PADC("of VS_ShowNtx().",50),"")
-
- SAMPLE->( VS_ShowNtx( "SAMPLE", "AUTHORLAST+AUTHORFRST", "C" ) )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_PrtFunc()
-
- VS_Tell(2,0,"",PADC("To see a demonstration of all the printer",50), ;
- PADC("functions, select VS_PrintTst()",50), "" )
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
- FUNCTION D_PrintTst()
-
- IF .NOT. IsPrinter()
-
- VS_Tell(3,0,"",PADC("Printer is not ready!",40), "")
- RETURN(NIL)
-
- ENDIF
-
- VS_GrabScr()
-
- VS_Palette(2)
-
- VS_PrintTst()
-
- VS_PutScr()
-
- RETURN(NIL)
-
- *══════════════════════════════════════════════════════════*
-
-
-