Home
Help
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
Welcome to Yet Another Programming Community!
Yet Another Programming Community
>
Programming
>
BASIC
>
Sending a single byte in VisualBasic 6.0?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Sending a single byte in VisualBasic 6.0? (Read 339 times)
ReCreate
Full Member
Karma: +2/-24
Offline
Posts: 161
GML/PHP/C++/VB6/Turing Programmer
Sending a single byte in VisualBasic 6.0?
«
on:
September 24, 2009, 10:15:14 PM »
So i am using:
Code:
MSComm1.Output = "Whatever"
to send things over the serial port, but i don't know how to send a single byte.
I looked around in places, google'd it, found nothing...
Any ideas?
Thanks
~ReCreate
Logged
xot
Administrator
Jr. Member
Karma: +0/-0
Offline
Posts: 54
Re: Sending a single byte in VisualBasic 6.0?
«
Reply #1 on:
September 25, 2009, 11:29:37 AM »
I'm not a VB programmer, but I think its as simple as:
Code:
MSComm1.Output = Chr(240)
240 being the decimal value of the byte (0xF0).
Logged
ReCreate
Full Member
Karma: +2/-24
Offline
Posts: 161
GML/PHP/C++/VB6/Turing Programmer
Re: Sending a single byte in VisualBasic 6.0?
«
Reply #2 on:
September 25, 2009, 01:52:30 PM »
Oh, Ok Thanks!
~ReCreate
Logged
Schyler
Newbie
Karma: +0/-0
Offline
Posts: 2
Experienced Mentor
Re: Sending a single byte in VisualBasic 6.0?
«
Reply #3 on:
October 25, 2009, 01:57:52 AM »
Dosn't raw values work also? I remember them working in other .NET languages, particularly C#.
MSComm1.Output = 0xF0
Regards,
-Schyler-
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
===> Spam Box
=> Rules and Regulations
=> Community Discussion
=> Team Requests
=> O-f-f--T-o-p-i-c
-----------------------------
Programming
-----------------------------
=> Development Tools
=> C, C# and C++
=> PASCAL
=> Java
=> BASIC
=> ASM
=> Other Languages
-----------------------------
Web Development
-----------------------------
=> Development Tools
=> HTML, XHTML and CSS
=> PHP
=> JavaScript
=> Other Languages
Loading...