home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
DEUTSCH
/
SONSTIGE
/
KFZWERK
/
KFZ8.SC
< prev
next >
Wrap
Text File
|
1993-12-01
|
2KB
|
96 lines
; Kfz8
AppLib = "Kfz3"
if (not isfile(AppLib + ".lib")) then
Createlib AppLib
endif
proc Kfz8S1()
private opResult
Readlib "Kfzutl" EntryTable, KECheck, ToggleForm,
EdFldView, HelpKey, EntryCancel, EntryDoIt,
RenamePre, RenameSet, SaveList, CreateList,
PrintList
opResult = EntryTable("Reart", "", "", FALSE)
Release Procs EntryTable, KECheck, ToggleForm,
EdFldView, HelpKey, EntryCancel, EntryDoIt,
RenamePre, RenameSet, SaveList, CreateList,
PrintList
return opResult
endproc
Writelib AppLib Kfz8S1
Release Procs Kfz8S1
proc Kfz8S2()
private opResult
Readlib "Kfzutl" EditTable, ToggleForm, EdFldView,
HelpKey, EditCancel, SEditDoIt, SEditDelIns
opResult = EditTable("Reart", "Reart", "", "", 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 Kfz8S2
Release Procs Kfz8S2
proc Kfz8Menu()
private x, escape
x = "Rechnungsp. eingeben"
while (TRUE)
Clear
ShowMenu
"Rechnungsp. eingeben": "Rechnungspositionen nach Auftragsnummern eingeben",
"Rechnungsp. ändern": "Rechnungspositionen ändern,löschen"
Default x
To x
switch
case x = "Rechnungsp. eingeben":
ReadLib "Kfz3" Kfz8S1
escape = Kfz8S1()
escape = not escape
Release Procs Kfz8S1
case x = "Rechnungsp. ändern":
ReadLib "Kfz3" Kfz8S2
escape = Kfz8S2()
escape = not escape
Release Procs Kfz8S2
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 Kfz8Menu
Release Procs Kfz8Menu