Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

what does the following do

Posted on 2006-06-25
5
Medium Priority
?
253 Views
Last Modified: 2010-04-16
I have an example app i found on the web which uses the following line to create a command

cmd="\x02\x06\x33\x31\x30\x33\x03";

what does it actually do? Is there  a low level language being used?

Thanks!!
0
Comment
Question by:Winston Smith
5 Comments
 
LVL 11

Accepted Solution

by:
Agarici earned 1000 total points
ID: 16981714
it creates a string which contains the chars with those hex values: cmd[0] = 0x02, cmd[1] = 0x06, cmd[2] = 0x33 and so on (i can tell you that 0x33 is '!' 0x31 is '▼' and 0x30 is '▲' )

the basic idea is that you can use '\x' escape sequence to specify a char in a string by its hex value.

hth,
A.
0
 
LVL 4

Expert Comment

by:SmithJW
ID: 16982365
the string is just hex encoded character codes which you can look up here
http://www.lookuptables.com/

what else can you tell us about the sample code?
where is this command used?

no low level language is being used, but without some context its impossible to say what is actually happening.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question