Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Help in hex codes


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Mar 15, 2016 10:41 AM Last Post By: Douglas Rudd Threads: [ Previous | Next ]
Diego Canlas

Posts: 1
Registered: 2/7/16
Help in hex codes  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 14, 2016 12:22 AM
How can I send multiple hex codes in delphi?
for example, the hex codes I need to send to the serial port is 1B and 40. How can I send it to the serial port? I can send hex codes to the serial port already but just one hex code, I am having difficulty sending multiple hex codes. Thanks in advance.

I'm sorry if this is in the wrong thread. I didn't realize I was on the wrong thread.

Edited by: Diego Canlas on Mar 14, 2016 12:27 AM
Linden ROTH

Posts: 467
Registered: 11/3/11
Re: Help in hex codes  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 14, 2016 1:39 AM   in response to: Diego Canlas in response to: Diego Canlas
Diego Canlas wrote:
How can I send multiple hex codes in delphi?
for example, the hex codes I need to send to the serial port is 1B and 40. How can I send it to the serial port? I can send hex codes to the serial port already but just one hex code, I am having difficulty sending multiple hex codes. Thanks in advance.

I'm sorry if this is in the wrong thread. I didn't realize I was on the wrong thread.

Edited by: Diego Canlas on Mar 14, 2016 12:27 AM

how are you sending the single code?
--
Linden
"Mango" was Cool but "Wasabi" was Hotter but remember it's all in the "source"
Douglas Rudd

Posts: 314
Registered: 5/16/97
Re: Help in hex codes  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 15, 2016 10:41 AM   in response to: Diego Canlas in response to: Diego Canlas
What I do is get the decimal values and send them as a string.
Like:

ComPort1.Write(#27+#64);
or
ComPort1.Write(#27+'@');
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02