473,327 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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

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

Jul 21 '05 #1
1 1088
i solved it guys.
sorry guys.......

Supra wrote:
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


Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jack | last post by:
Hello, I made this code: .... <% dim xyz xyz = Request.Form("checkbox1") %> <HTML> <HEAD>
3
by: Supra | last post by:
how do i get value from xml file to checkbox1.checked ( 1 or 0) . i stored value to xml: rw.WriteConfigInfo("UserModes", "InvisibleOnServer", CStr(chkInvisible.CheckState), "PirateChat.xml") ...
2
by: Supra | last post by:
how do i get value from xml file to checkbox1.checked ( 1 or 0) . i stored value to xml: rw.WriteConfigInfo("UserModes", "InvisibleOnServer", CStr(chkInvisible.CheckState), "PirateChat.xml") ...
3
by: Moe Sizlak | last post by:
Hi, Can I check a checkbox by default based on the value returned from a database? for example if the value (dr("frm7value")) returned from a db field is "YES" how can I check the checkbox by...
3
by: Julius Fenata | last post by:
Dear all, I have checkbox on my webform, and I want that when I click my checkbox, it should change status between true or false... Here is my code, // Code Behind CheckBox1.Attributes =...
1
by: Supra | last post by:
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...
3
by: newjazzharmony | last post by:
Hello group, I want to automatically select a specific checkbox when a user clicks (selects) a specific item in a radiobutton group. Both controls are in the same form. Let's say for...
5
by: Mike Fellows | last post by:
I have created some checkboxes within a panel using the code below Dim NewCheckbox As New CheckBox Me.Panel2.Controls.Add(NewCheckbox) NewCheckbox.Location = New Point(XLocation, YLocation)...
5
by: Arto Viitanen | last post by:
What is the best way to implement three value data, where the values are no/yes/not applicable ? I have used bool?, but I remember seeing some class (or most likely enum) on .net for this. --...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.