login about faq

Hello,

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

Brock
1567


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?

link

answered Mar 09 '14 at 10:34

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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.

link

answered Mar 13 '14 at 00:37

Brock's gravatar image

Brock
1567

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×90

Asked: Mar 07 '14 at 11:47

Seen: 645 times

Last updated: Mar 13 '14 at 00:37

powered by OSQA