Preference issue?
Posted: Thu Mar 06, 2008 9:30 pm
(Using PB 4.20 BETA 2)
Hello
When writing in a preference file (son.txt) I got two more lines
with those characters at the beginning (first line): 
and an empty key/value at the end : =
Whereas there's nothing more than the expected lines in the messagerequester used for testing !?
I got the same with or without Unicode for the editor or the program... 
Any solution or trick?
Thanks in advance for your replies
Hello
When writing in a preference file (son.txt) I got two more lines
with those characters at the beginning (first line): 
and an empty key/value at the end : =
Whereas there's nothing more than the expected lines in the messagerequester used for testing !?
Code: Select all
Procedure.l modifierFichier()
PreferenceGroup(GetGadgetText(#cbxTypes))
For i = 0 To CountGadgetItems(#lstFichiers)-1
MessageRequester("",Left(GetGadgetItemText(#lstFichiers,i,0),1)+" = "+GetGadgetItemText(#lstFichiers,i,1))
WritePreferenceString(Left(GetGadgetItemText(#lstFichiers,i,0),1),GetGadgetItemText(#lstFichiers,i,1))
Next
isModified = 0
ProcedureReturn 1
EndProcedure

Any solution or trick?
Thanks in advance for your replies