473,412 Members | 2,277 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,412 software developers and data experts.

Convert hex data to ASCII decimal string format

Hi ,

I Would Like To Convert Some HEX Data to string format and opposite .

does vb.net has some functions for that ?

10x

--
Best Regards ,

Tiraman :-)
Nov 20 '05 #1
4 13613
On Sat, 29 May 2004 19:27:35 +0200, Tiraman wrote:
Hi ,

I Would Like To Convert Some HEX Data to string format and opposite .

does vb.net has some functions for that ?

10x


Option Strict On
Option Explicit On

Imports System

Module Module1

Sub Main()
Dim hexData As Integer = &HFFE2

Dim sHex As String = Convert.ToString(hexData, 16)
Console.WriteLine(sHex)
Console.WriteLine(Convert.ToInt32(sHex, 16))
End Sub

End Module

Is that what you mean?

--
Tom Shelton [MVP]
Nov 20 '05 #2
"Tiraman" <ti*****@netvision.net.il> schrieb

I Would Like To Convert Some HEX Data to string format and opposite
.

does vb.net has some functions for that ?

10x


dim s as string
dim b as byte

b = System.Convert.ToByte("ff", 16)
s = b.tostring("X2")
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
* "Tiraman" <ti*****@netvision.net.il> scripsit:
I Would Like To Convert Some HEX Data to string format and opposite .

does vb.net has some functions for that ?


'Hex', 'Val'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
10x guys
you helped me .

"Tiraman" <ti*****@netvision.net.il> wrote in message
news:uT**************@TK2MSFTNGP10.phx.gbl...
Hi ,

I Would Like To Convert Some HEX Data to string format and opposite .

does vb.net has some functions for that ?

10x

--
Best Regards ,

Tiraman :-)

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sean | last post by:
Hi, I have a situation here regarding a VB.net application. I need to convert a bunch of data to a presentable and printable format. Is there an economical (perhaps an open source third party...
3
by: Boz | last post by:
Hi, I am trying to use string.Format() to output the value of a double. double da = 100000000000.99994; double db = 100000000000.9994; double dc = 100000000000.994; double dd =...
1
by: Juan | last post by:
Best way to convert back a currency string into a number(int or long)? If I have, for example, $ 15.000,00 what is the best way to make it again an int or long? pls help!, Juan.
2
by: Dean L. Howen | last post by:
dear friends, I have a litte thing, hope you can help me. I want to convert a decimal to a string that have user-defined separator and full decimal digits. If we set NumberDecimalDigits = num, we...
6
by: Allan Ebdrup | last post by:
How do I easily convert a int to a string? Kind Regards, Allan Ebdrup
7
by: Alpha | last post by:
Hi, I'm maintaining C# code and am fairly new with C# programming. I'm looking for codes that's droping the 2nd digit of a nuber printed out and I suspect it's the code below. Can someone tell me...
5
by: shivaprasad | last post by:
Hi all, I am a Beginner to c#. I Need to convert array of byte data type to string. How to do this.. ex: byte bytes = new byte; this bytes get filled up. Now I need to convert to string.
3
by: Sean | last post by:
Hi, I have a situation here regarding a VB.net application. I need to convert a bunch of data to a presentable and printable format. Is there an economical (perhaps an open source third party...
10
by: cmdolcet69 | last post by:
Public ArrList As New ArrayList Public bitvalue As Byte() Public Sub addvalues() Dim index As Integer ArrList.Add(100) ArrList.Add(200) ArrList.Add(300) ArrList.Add(400) ArrList.Add(500)
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.