home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
basic
/
library
/
pb
/
library3
/
aplib-h.bas
< prev
next >
Wrap
BASIC Source File
|
1990-10-10
|
2KB
|
63 lines
DEFINT A-Z
' compiler instructions ...
%False = 0
%True = NOT %False ' basic truths of the universe ...
%Yes = %True
%No = %False
%FLAGS = 0: %AX = 1: %BX = 2: %CX = 3: %DX = 4
%SI = 5: %DI = 6: %BP = 7: %DS = 8: %ES = 9
%Background = 16
%Center = 0
'Printer Codes
%Star10X = 1: %StarNX1000 = 2: %IBMX24 = 3: %LQ2500 = 4
'Color #s
%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
%LeftButton = 1
%RightButton = 2
%UDVal = 3 ' controls mouse sensitivity in POPMENU
%MouseIcon = 15 ' ... a little sun or bug character
%MaxMenuWidth = 40
DIM DYNAMIC FieldName$(20),FieldMask$(20),FL(20),FC(20)
DIM DYNAMIC ScreenStack$ ( 1 : %ScrnStackSize )
ScrnStackSize = %ScrnStackSize
DIM DYNAMIC MenuData$ (24) ' max menu length = 23; need one more for the "END"
DIM DYNAMIC MenuHelpLine$ (23)
DIM DYNAMIC MCode$ (23)
' MENU RETURN CODES (KEY PRESSED.)
%CR = 0: %Esc = &H20: %F1 = &H100: %F2 = &H200
%PgUp = &H400: %PgDn = &H600
%RArrow = &H800: %LArrow = &HA00
%Okay = 0
%FileNotFound = 1000 'You tried to open a non-existant file
%FileAlreadyCreated = 1001 'You tried to create an already-created file.
%InvalidCall = 1002 'You used a command that doesn't exist.
%FileNotDBLOW = 1003 'The file exists, but is not an DBLOW file.
%TooManyFiles = 1004 'You have opened more than MaxFiles files.
%KeyNotFound = 1005 'You have referenced a non-existant key.
%EndOfFile = 1006 '
%FileNotOpen = 1007
%KeyAlreadyExists = 1008
%TooManyKeys = 1009
%FileNotDBHIGH = 1010
%FileAllowsDups = 1011 'You tried to open a Duplicate-key file in
'non-Duplicate mode
%BadParameter = 1012 'Parameter out of range