8
Reply

Coversion from string ""to double type is invalid

Rams

Rams

Oct 11 2011 2:16 AM
3k
Hi All,

iam passing a textbox value(the value is 10:1:1) into a string and when iam running the application iam getting the following error "coversion from string "10:1:1" to double type is invalid". kindly find the code below and help me on the same: (also the textbox values should be greater than 0 always)







Dim strEncrypt As String = txtData.Text

If strEncrypt > 0 Then// iam getting the error here txtEncryptedData.Text = Encrypt(strEncrypt)


Else MessageBox.Show(


"Enter the Value greater then 0:")End If

Thanks,
Rams

Answers (8)