By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Chr () Function and Device

P: 25
I need a way to communicate to a device so that i can take readings off of it. The code i have submitted is giving me an error when i compile.

[ comm1.Output = Chr(0x2A)+Chr(0x04)]


It says it missing a ')' when compile???? What is it talking about and how can I fix it?
Sep 7 '07 #1
Share this Question
Share on Google+
2 Replies


QVeen72
Expert 100+
P: 1,445
Hi,

u may have to use a "Chr$" function , say:

Expand|Select|Wrap|Line Numbers
  1. Comm1.Output = Chr$(110) & Chr$(80)
  2.  
REgards
Veena
Sep 7 '07 #2

P: 25
Hi,

u may have to use a "Chr$" function , say:

Expand|Select|Wrap|Line Numbers
  1. Comm1.Output = Chr$(110) & Chr$(80)
  2.  
REgards
Veena
Veena when i add the following:
Expand|Select|Wrap|Line Numbers
  1.  comm1.output = chr$(110)&chr chr(80) 
I get the follwoing error message: "Type character "&" does not match declared data type 'Char'"


What does that mean? and how can i fix it?
Sep 7 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.