Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

VB6 Textbox Value Send

$
0
0
I'm entering a number in the text box.There is no any delimiter or commas.I'm entering a number between 1 to 16 & that value will output through serial port.

The problem is, it will send numbers from 1 to 9.From 10 & above it wont send,I think VB compiler thinks as two separate characters...!!!

Ex:
I type 1 & I press command button then it must send 1
I type 2 & I press command button then it must send 2
I type 3 & I press command button then it must send 3
I type 10 & I press command button then it must send 10
I type 16 & I press command button then it must send 16

The below code does not work well.

MSCom1.Output = chr(text1.text)

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>