|
-
Jul 31st, 2004, 09:55 AM
#1
Thread Starter
New Member
How to convert String to Long or Int??
Hi,
Can't really convert string to long.. or int.. Pls enlighten me?
thanks...
'Serial Number is number value in access database
Dim StockVerification As New OleDbCommand("SELECT serial_number from stock where serial_number = '" + txbRentalSerial.Text + "'", cnnRental)
'will prompt 'data mismatch' when executing the program
Tried using below and cant also...
Dim mylong As Long
Dim s As String
'mylongl = CLng(txbRentalSerial.Text)
'mylong = System.Convert.ToInt64(txbRentalSerial.Text())
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|