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.