If @LServer is returning '', then the 'key' gets deleted in the ini file.
code:
dim $IniFile,$IniSection,$IniKey,$IniStr
;
$IniFile="c:\temp\test.ini"
$IniSection="LogonServer"
$IniKey="Servers"
$IniStr=@Lserver
;
$IniFile?
$IniSection?
$IniKey?
$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

_________________________
We all live in a Yellow Subroutine...