home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
BASIC
/
POWBASIC
/
LIBRARY3
/
APLIB.ZIP
/
APL-QREF.BAS
< prev
next >
Wrap
BASIC Source File
|
1990-11-23
|
5KB
|
103 lines
QUICK REFERENCE FOR HB'S ALL-PURPOSE LIBRARY:
note: I have a .BAS extension on my filename so I'll come up on the pick
list and you can pop me up quickly. Don't try to compile me !!
>>>>>>>>>>>>> in SETUP-H.BAS <<<<<<<<<<<<<
DEFINT A-Z
DEFINE's: %False, %True; Register names; %Background = 16 %Center = 0
PRINTERS: %Star10X = 1: %StarNX1000 = 2: %IBMX24 = 3: %LQ2500 = 4
((( COLORS )))
%Blk = 0: %Blu = 1: %Grn = 2: %Cyn = 3: %Red = 4: %Vlt = 5
%Brn = 6: %Gry = 7: %DGry = 8: %LBlu = 9: %LGrn = 10: %LCyn = 11
%LRed = 12: %Pnk = 13: %Ylo = 14: %Wht = 15: %Flash = 256
>>>>>>>>>>>>> in INIT-U.BAS <<<<<<<<<<<<<
SUB Initialize (PrinterType)
InitPrt$ GraphicsChrSetOn$ GraphicsChrSetOff$ BoldPrtOn$ BoldPrtOff$
ItalicPrtOn$ ItalicPrtOff$ RegPrt$ FastPrt$ WidePrt$ BigPrtOn$ BigPrtOff$
LQPrt$ DraftPrt$ MicroPrtOn$ MicroPrtOff$ ElitePrt$ PicaPrt$ NeedDCon VideoSeg& = &HB800: CursorTop = 6: CursorBottom = 7
>>>>>>>>>>>>> in FENTRY-U.BAS <<<<<<<<<<<<<
%ReadRodent = 3 %RightButton = 2
%LeftButton = 1 %MaxDecPlaces = 4
SUB ENTERSTRING (Wkg$,FLength,Opt$)
SUB ENTERNUMBER (Wkg#, Masq$, Opt$) SUB ENTERSSN (A$, Opt$)
SUB ENTERDATE (A$, Opt$) SUB FASTPHONE (A$, Opt$)
SUB RotaDate (D$,Opt$) SUB PressAKey
SUB ENTERTIME (A$, Opt$) FUNCTION GetYesOrNo
SUB ENTERYESNO (Yes)
>>>>>>>>>>>>> in BOXES-U.BAS <<<<<<<<<<<<<
SUB BOXMESSAGE(CornerLin, CornerCol, Margin)
SUB BOXMESSAGE2 (CornerLin, CornerCol, Margin, I$(1), Items%, Maxx)
SUB POPWINDOW
SUB PWSetUp (Fld$,Z)
SUB QBOX (L, C, Lines%, Message$, AnsFldLength)
>>>>>>>>>>>>> in MENUS-U.BAS <<<<<<<<<<<<<
SUB TOPMENU (Lines% ,Choice, TLine$)
SUB POPMENU (TopKey$,MenuRight,MenuDown,Choice,MLine$,MCode$)
SUB SUPERMENU (MenuData$ (), MenuRight, MenuDown, Choice, Title$, Ky%)
' ====
' Notes: *** HOW TO USE SUPERMENU ***
' ===================
'
' MENU SETUP: THE MenuData$ ARRAY:
' Each choice on your menu is represented by one string element in
' this array. The decription of each choice -- for example, "LOAD",
' will start with the third character of this string. If you are
' specifying the hot-key for each choice put it into the first
' character -- set MenuData$ (1) as something like "L LOAD". To let
' the software number or letter the items in order for you, set
' MenuData$ as just " LOAD". (If there are <11 items, numbers
' are used rather than letters.) After the last menu item, you
' must set the next array element as "END".
' PASSING HELP LINES TO MENU: Set MenuHelpLine$() to contain lines (up
' to 80 chr long) to appear at screen bottom whenever the
' corresponding menu choice is highlighted.
' POSITION OF MENU ONSCREEN ETC.: MenuRight moves it right or left -- 0
' is top center. MenuDown moves it -- you guessed it! Errors will be
' trapped. Vertical centering is gotten by setting MenuDown = 25.
' Usually set Choice = 1. Title$ is title of menu.
' *** AFTER MENU ROUTINE: Choice will hold the choice #. Title$ reset to "".
' MKeyPressed$ if the actual key used (if mouse was used it
' simulates the CR key, i.e. CHR$(13)) -- or if [ESC] or a legal
' function key was pressed it contains "ESC", "PgDn", "PgUp", "F1",
' or "F2".
>>>>>>>>>>>>> in FIGDAT-U.BAS <<<<<<<<<<<<<
FUNCTION FigDate&(A$)
FUNCTION WriteDate$ (W&)
FUNCTION WkDay$(W&)
FUNCTION YearsSince (D0$)
FUNCTION FlipDate$ (WrittenDate$)
FUNCTION UnflipDate$ (FlippedDate$)
>>>>>>>>>>>>> in MISC-U.BAS <<<<<<<<<<<<<
SUB SCREENPUSH
SUB SCREENPOP
SUB RestoreDOSScreen
SUB PRINTLINE (L$)
SUB FileFunctions (MenuRight, MenuDown, Choice$)
FUNCTION IsBlank (W$)
FUNCTION GetAttr
FUNCTION IsRodent ' finds if you have a rodent and also resets it
SUB Mouse(MV1, MV2, MV3, MV4)
FUNCTION GetCurrentDrive$
FUNCTION GetCurrentDir$
FUNCTION GetFreeSpace! (Drv$)
FUNCTION ReadParamFor (A$) ' this reads parameters from the command tail
SUB ClearLine
SUB DirFirst (F$, FileSize&, DateCode&, TimeCode&)
SUB DirNext (F$, FileSize&, DateCode&, TimeCode&)
FUNCTION DecodeDate$ (DateCode&)
FUNCTION DecodeTime$ (TimeCode&)