473,379 Members | 1,270 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,379 software developers and data experts.

can't get value from xml

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")

get value from xml and store in checkbox1.checked . but i couldn't get
value from xml:

'load user modes
Dim szInvisible As Collection =
clsReader.GetConfigInfo("PirateChat", "InvisibleOnServer", " ",
"PirateChat.xml")
Dim getInvisible As String
For Each getInvisible In szInvisible
chkInvisible.Checked = Val(getInvisible)
Debug.WriteLine("state :" & Val(getInvisible))
Next

all i got 0 value.

regards

Nov 22 '05 #1
3 1282
this is what i got from xml file :
<UserModes>
<InvisibleOnServer>1</InvisibleOnServer>
<ReceiveServerMsg>1</ReceiveServerMsg>
<Wallop>1</Wallop>
</UserModes>

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

get value from xml and store in checkbox1.checked . but i couldn't get
value from xml:

'load user modes
Dim szInvisible As Collection =
clsReader.GetConfigInfo("PirateChat", "InvisibleOnServer", " ",
"PirateChat.xml")
Dim getInvisible As String
For Each getInvisible In szInvisible
chkInvisible.Checked = Val(getInvisible)
Debug.WriteLine("state :" & Val(getInvisible))
Next

all i got 0 value.

regards


Nov 22 '05 #2
On Sun, 01 Aug 2004 11:36:59 GMT, Supra wrote:
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")

get value from xml and store in checkbox1.checked . but i couldn't get
value from xml:

'load user modes
Dim szInvisible As Collection =
clsReader.GetConfigInfo("PirateChat", "InvisibleOnServer", " ",
"PirateChat.xml")
Dim getInvisible As String
For Each getInvisible In szInvisible
chkInvisible.Checked = Val(getInvisible)
Debug.WriteLine("state :" & Val(getInvisible))
Next

all i got 0 value.

regards


You could do this:

chkInvisible.Checked = (Val(getInvisible) = 1)

If Val(getInvisible) is 0 then the condition will evaluate at false
--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 22 '05 #3
i tried this b4. but in debug i can see value return zero insterad of 1

Chris Dunaway wrote:
On Sun, 01 Aug 2004 11:36:59 GMT, Supra wrote:
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")

get value from xml and store in checkbox1.checked . but i couldn't get
value from xml:

'load user modes
Dim szInvisible As Collection =
clsReader.GetConfigInfo("PirateChat", "InvisibleOnServer", " ",
"PirateChat.xml")
Dim getInvisible As String
For Each getInvisible In szInvisible
chkInvisible.Checked = Val(getInvisible)
Debug.WriteLine("state :" & Val(getInvisible))
Next

all i got 0 value.

regards


You could do this:

chkInvisible.Checked = (Val(getInvisible) = 1)

If Val(getInvisible) is 0 then the condition will evaluate at false


Nov 22 '05 #4

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

Similar topics

1
by: techy techno | last post by:
Hii Just wanted to know how can I decorate my texboxes and Listmenu which is called from a JS file using the following code below: document.write("<SELECT NAME='cur2' ONCHANGE='cconv1();'>");...
16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
7
by: Fendi Baba | last post by:
The function is called from opencalendar(targetfield). Thanks for any hints on what could be the problem. .............................................................. var...
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
6
by: marcelf3 | last post by:
Hello.. This page opens a window with some information, but everytime the user changes a field in the parent window, the child window needs to be closed. These 2 functions were supposed to do the...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
5
by: Novice Computer User | last post by:
Hi. Can somebody PLEASE help. Here is a .php script. Right now, the minimum amount of time (i.e. duration) allowed is 1 month. However, I want to be able to reduce the minimum amount of time to...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
1
Wiccadwitch
by: Wiccadwitch | last post by:
Could someone please help??? I'm using paypal's shopping cart which allows for 2 options (such as colors or sizes). I need up to six options with 40 or so colors to choose from. I tried adding 6...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.