home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
DEUTSCH
/
SONSTIGE
/
KFZWERK
/
KFZ10.SC
< prev
next >
Wrap
Text File
|
1993-12-01
|
2KB
|
96 lines
; Kfz10
AppLib = "Kfz4"
if (not isfile(AppLib + ".lib")) then
Createlib AppLib
endif
proc Kfz10S1()
private opResult
Readlib "Kfzutl" EntryTable, KECheck, ToggleForm,
EdFldView, HelpKey, EntryCancel, EntryDoIt,
RenamePre, RenameSet, SaveList, CreateList,
PrintList
opResult = EntryTable("Kovoart", "", "", FALSE)
Release Procs EntryTable, KECheck, ToggleForm,
EdFldView, HelpKey, EntryCancel, EntryDoIt,
RenamePre, RenameSet, SaveList, CreateList,
PrintList
return opResult
endproc
Writelib AppLib Kfz10S1
Release Procs Kfz10S1
proc Kfz10S2()
private opResult
Readlib "Kfzutl" EditTable, ToggleForm, EdFldView,
HelpKey, EditCancel, SEditDoIt, SEditDelIns
opResult = EditTable("Kovoart", "Kovoart", "", "", FALSE,
"SEditDoIt", "SEditDelIns",
"[Ins] - Einen Record einfügen, [Del] - Einen Record löschen",
FALSE, FALSE, FALSE)
Release Procs EditTable, ToggleForm, EdFldView,
HelpKey, EditCancel, SEditDoIt, SEditDelIns
return opResult
endproc
Writelib AppLib Kfz10S2
Release Procs Kfz10S2
proc Kfz10Menu()
private x, escape
x = "Positionen erfassen"
while (TRUE)
Clear
ShowMenu
"Positionen erfassen": "Positionen für Kostenvoranschläge eingeben",
"Positionen ändern": "Positionen für Kostenvoranschläge ändern"
Default x
To x
switch
case x = "Positionen erfassen":
ReadLib "Kfz4" Kfz10S1
escape = Kfz10S1()
escape = not escape
Release Procs Kfz10S1
case x = "Positionen ändern":
ReadLib "Kfz4" Kfz10S2
escape = Kfz10S2()
escape = not escape
Release Procs Kfz10S2
case x = "Esc":
return FALSE
endswitch
; Wert von ErrorProc zurücksetzen
ErrorProc = "ApplicErrorProc"
ApplicErrorRetVal = FALSE
if (not escape) then
return TRUE
endif
endwhile
endproc
Writelib AppLib Kfz10Menu
Release Procs Kfz10Menu