how to retrieved value from xml to checkbox1............

  • Thread starter Thread starter Supra
  • Start date Start date
S

Supra

i tried a many times. the only thing i can do in vb6. i can write
checkbox1.CheckState to xml. but i can't get value from xml.to
checkbox1CheckState.... all i got zero, and checkbox1.CheckState do nothing

i can write to xml:
'user modes
rw.WriteConfigInfo("UserModes",
"InvisibleOnServer",checkbox1.CheckState, "PirateChat.xml")

i can retrieved from xml.........but i got zero all times.
'load user modes
Dim szInvisible As Collection =
clsReader.GetConfigInfo("PirateChat", "InvisibleOnServer", " ",
"PirateChat.xml")
Dim getInvisible As String
For Each getInvisible In szInvisible
chkInvisible.CheckState = Val(getInvisible)
Debug.WriteLine("state :" & Str(Val(getInvisible)))
====> state : 0 ....... not getting value of one
Next

here what u c in xml:
<UserModes>
<InvisibleOnServer>1</InvisibleOnServer> ............it stored value of
"1" in xml.that fine!
</UserModes>

i appreciate ur help.
regards
 
Back
Top