#32836 - 2002-11-19 01:05 PM
Re: Creating and writing into a .log file
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I may be good to surpass the current requirement with useful code because you know that requirements change and get more demanding. Once in place, these functions give you the functionality you you need now and in the future. [ 19. November 2002, 13:05: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#32844 - 2002-11-19 03:13 PM
Re: Creating and writing into a .log file
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
Please learn some basic error checking procedures!
code:
dim $IniFile,$IniSection,$IniKey,$IniStr ; $IniFile="c:\temp\test.ini" $IniSection="LogonServer" $IniKey="Servers" $IniStr=@Lserver ; ? '@@LDOMAIN = '+@LDOMAIN ? '@@LSERVER = '+@LSERVER ? 'INI File = '+$IniFile ? 'INI Section = '+$IniSection ? 'INI Key = '+$IniKey ? 'INI String = '+$IniStr ; If Exist($IniFile) $rc=writeprofilestring($Inifile,$IniSection,$IniKey,$IniStr) If $rc=0 "Function success"? Else "Function failure "+@error+" "+@serror? EndIf Else "Ini file not found"? EndIF
You will most likely discover that @LSERVER is empty. You should then read the KiXtart Manual to discover what happens if you provide an empty string into the WRITEPEOFILESTRING function.
So, the question is: Why is @LSERVER empty? [ 19. November 2002, 15:14: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 611 anonymous users online.
|
|
|