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 3 1280
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
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.
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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();'>");...
|
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...
|
by: Fendi Baba |
last post by:
The function is called from opencalendar(targetfield). Thanks for any
hints on what could be the problem.
..............................................................
var...
|
by: Yuk Cheng |
last post by:
<<<start index.htm>>>
<html>
<head>
<script>
function perform(action){
}
</script>
</head>
|
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...
|
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>...
|
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...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
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...
|
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...
|
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)...
|
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...
|
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....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |