Forum Index > Outputting a String of Characters

By: Matt Posted on: Apr 18 2012 at 06:15:06 PM
Hi,
I am new to COMM64 and like what I see so far, however my old app using mscomm32 sent 3 bytes of characters in one command.

code was:
//define variables
a,b,c : Character

//main code
a = "T".Character
b = "1".Character
c = "3".Character

msComm32.putOutput(a & b & c)


Do you have any idea how this can be translated for Comm64 it doesnt seem to want to take more than one character at a time. And repeating the Output comand three times doesnt work

example:
//define variables
a,b,c : Character

//main code
a = "T".Character
b = "1".Character
c = "3".Character

comm64.output = a
comm64.output = b
comm64.output = c


Thanks
Matt

By: Guest Posted on: Apr 18 2012 at 09:45:45 PM
You should be able to use the standard MSComm syntax

Comm64.Output = "this is a string of characters"

So

Comm64.Output = a & b & c

Should work as well.

But you might also try the WriteString function

Comm64.WriteString(a & b & c)

Take a look at the sample projects.

 

Reply - add comment to this topic
You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected
  Topic:- Outputting a String of Characters

Your Name


 


Forum scripts and databases - Copyright (c) 2009 - 2012 AxCoL.com