| |
|
|
 KHR | Hello together,
.
what mach I wrong?
but not Ner lying-File produziere I/XProfan10 only Fehlermeldungen: CompileMarkSeparationName und Pfad der Log-Datei bestimmen
declare ExeName$, ExePathName$, SplitZaehler%, LOGName$, Parameter$, LogDatei&
declare wert%
parameter$=@PAR$(0)
parameter$=SubStr$(parameter$, -1, \)
if parameter$ = profan.exe
ExeName$ = @PAR$(1)
elseif parameter$ = prfrun32.exe
ExeName$ = @PAR$(1)
else
ExeName$ = @PAR$(0)
endif
SplitZaehler% = @len(SubStr$(ExeName$, -1, \))
ExePathName$ = @left$(ExeName$,(@len(ExeName$)-SplitZaehler%))
LOGName$ = ExePathName$+Testprog.log
@Set(FileMode,2)
@MessageBox(LOGName$,Datei mit Pfad ,16)
Assign #1, LOGName$
wert%=%IoResult
Case wert%:@MessageBox(Kann Datei nicht anlegen!+@str$(wert%)+!,Fehler: ,16)
append #1
wert%=%IoResult
Case wert%:@MessageBox(Kann Datei nicht öffnen!+@str$(wert%)+!,Fehler: ,16)
print #1,dies ist meine Log-Datei
wert%=%IoResult
Case wert%:@MessageBox(Kann Datei nicht schreiben!+@str$(wert%)+!,Fehler: ,16)
close #1
wert%=%IoResult
Case wert%:@MessageBox(Kann Datei nicht schliessen!+@str$(wert%)+!,Fehler: ,)
If I yet hairs on the head had, would I tappt im dunkeln me ausraufen!!!
. |
|
|
| Gruß Karl-Heinz WIN XP home/Pro / XPROFAN 11 / P2CPP ATMEL + BASCOM Fan | 04/20/08 ▲ |
|
|
|
|
 | |
|
| |
|
|
|
 KHR | Hello David
.
Yes goes,
habs strain once more with rewrite in my example probiert and goes too!
mandatory I The File first with rewrite lay out? reicht there one append not from??
. |
|
|
| Gruß Karl-Heinz WIN XP home/Pro / XPROFAN 11 / P2CPP ATMEL + BASCOM Fan | 04/20/08 ▲ |
|
|
|
|
 Jac de Lad | |
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 04/20/08 ▲ |
|
|
|