login about faq


I get this error " conversion from string to type double is not valid "

on this line of code

success = ssh.ChannelSendString(channelNum, "show int eth 1/1/" & TextBox1.Text & +vbCrLf, "ansi")

The textbox only get numbers entered in it not alpha. I'm not sure how to fix this issue.

But if I take away the & TextBox1.Text & and just use "show int eth 1/1/1" +vbCrLf, "ansi") it works

Cant understand why the other doesn't when its just a string.

thank you Brock

asked Mar 07 '14 at 11:47

Brock's gravatar image


I suspect this error is not from Chilkat, but is the error produced by the remote command run on the remote system? In that case, this wouldn't be a Chilkat issue. Is that true?


answered Mar 09 '14 at 10:34

chilkat's gravatar image

chilkat ♦♦

Thank you Chilkat

my problem was the /// it was trying do math and not act as a string.

When I did a Dim cmd As String then the command as cmd it worked.


answered Mar 13 '14 at 00:37

Brock's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 07 '14 at 11:47

Seen: 1,095 times

Last updated: Mar 13 '14 at 00:37

powered by OSQA