Yes, the data was already an int.
Basically what I'm doing is pulling back a set of data and deciding if a particular bit has been turned on or off. It is always the same bit that I am checking.
Both suggestions have been helpful.
My problem now is that other events make an entry in the table...
I need to interrogate a particular bit in a binary string.
If I take the number 56246 and convert it to binary using the windows calculator I end up with this binary string 1101101110110110
I am interested in determining the status of the bold bit.
If I take the number 56246 that is stored in...
Thanks for the very fast reply guys!
I've gone with grtfercho's answer as it is the easiest one for me to understand although I do appreciate what Cresby is saying about the nulls.
I have one more thing to add to the mix. What if I need an optional character on the end? The last character can...
I've been trying to create a regular expression to validate a string, but since this is my first time with regular expressions, I'm making very hard work of it.
The accepted string format is NNNNAA where N=numberic and A=Alpha. The field is forced uppercase.
I can validate the NNNN part but...
Hi all, I'm simply trying to add 1 day onto today's date.
I've figured out that I need to convert todays date to milliseconds using getTime() but when I try to add 8640000 milliseconds (ie 1 day) onto my object I can't manage to convert it back so that the date is incremented by 1 day.
No doubt...
I have following xml doc:
<?xml version="1.0"?>
<Jobs>
<Job id="1">
<CustomerRef>123456</CustomerRef>
<CollectionDate>18/09/01</CollectionDate>
<CollectionTime>18:00</CollectionTime>
<DeliveryDate>19/09/01</DeliveryDate>...
I'd like to know if I'm going about doing this in the right way.
Basically I have an xml document I want to post to the internet, capture and submit to a database.
I have an xml document in simple flat format, eg:
<Jobs>
<Job>
<DeliveryDate>01/10/01</DeliveryDate>...
I have a form that has three fields
txtAccount (Account Number)
mnuCriteria (either = < or >)
txtInvoiceNo (1 to whatever)
I want the user to be able to key in an account number in the textbox txtAccount, then select from the dropdown menu mnuCriteria either = < or > then key...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.