English
Forum

File and generate Global or not

 

KHR
Hello together,

.

what mach I wrong?

but not Ner lying-File produziere I/XProfan10 only Fehlermeldungen:
CompileMarkSeparation
Name 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  
 



One simple
CompileMarkSeparation
ought to The Test.File with 0 byte Size produce. functions the with you?
 
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
No, Append goes only, if The File already there's.
CompileMarkSeparation
Jac
 
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  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

652 Views

Untitledvor 0 min.
Klaus Müller08/02/24
Georg07/24/13
Frank Vorholzer12/03/11
Stephie09/03/11

Themeninformationen

this Topic has 3 subscriber:

KHR (2x)
Jac de Lad (1x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie