473,396 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Chr () Function and Device

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
2 1337
QVeen72
1,445 Expert 1GB
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
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

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

Similar topics

6
by: exquisitus | last post by:
Hi all, I'm porting a DOS application to run on Linux. I need to replace this function or use an equivalent. Anyone knows how or where I can get this function's equivalent (or maybe someones...
2
by: Richard | last post by:
Hi All, I have a dll built under PB. I want to call a function in the dll from C# so... public static extern bool EventApiInit(); .... bool ret = EventApiInit(); (all within the same class...
14
by: Fabian Steiner | last post by:
Hello! I have got a Python "Device" Object which has got a attribute (list) called children which my contain several other "Device" objects. I implemented it this way in order to achieve a kind...
4
by: mousou | last post by:
Hi all, I trying to port a WDM driver in VS.Net 2005. I had several difficulty, but it's one of them I still did not found any solutions. My code use the function _alloca to allocate space on...
22
by: Michael Post | last post by:
Hello members, i have a (time-(?))-problem with the serial-communication with an ms- dos 6.2 and the rs232-interface with an rs485-adapter behind the interface. I program in C. As compiler, i...
13
by: Treadstone | last post by:
Hi, Being a newbie to C# and having worked with C all the way, I am stuck with an interop problem. I have a DLL exporting certain functions (and written in C). The signature of 1 such...
6
by: emre esirik(hacettepe computer science and enginee | last post by:
I need to function for polynom device, there are 2 polynom and its power max=5, and polynom array is integer I need to function which device two polynom , (two polynom device with not remaining
14
by: squishywaffle | last post by:
Greetings, I'm trying to wrap a function in a C library as a compiled C Python module. Everything is going great, but I've hit a snag. There's a function in the form of this: First the...
0
by: constructor | last post by:
Hello NG, I'm having to use a function in an external library that returns a pointer to an array of structs. The function declaration according to library vendor is: device** getList( int...
0
by: anu29dolly | last post by:
hello i want to pass two pointers to function ... my code requirement is that i need to pass value tusb_dev1 and tusb_dev2 as it contains different data depending on the usb device found... and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.