LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Char to it's decimal value

I have to convert a char in it's ASCII decimal value.. any idea?
0 Kudos
Message 1 of 6
(2,831 Views)
"Keysano" ha scritto nel messaggio
news:vAkwc.23957$G%.7394@tornado.fastwebnet.it...
> I have to convert a char in it's ASCII decimal value.. any idea?
>
>
>

Use the function "decimal string to number" or the type-casting

--

Vicio
0 Kudos
Message 2 of 6
(2,831 Views)
decimal string to number convert "9" to decimal 9 not to 57 wich is its
ascii value. Also string to hex doesn't works in my case... I need a
different conversion type..
Excuse me for my english.. 🙂
"Vicio" ha scritto nel messaggio
news:yBmwc.288498$hc5.12610054@news3.tin.it...
>
> "Keysano" ha scritto nel messaggio
> news:vAkwc.23957$G%.7394@tornado.fastwebnet.it...
> > I have to convert a char in it's ASCII decimal value.. any idea?
> >
> >
> >
>
> Use the function "decimal string to number" or the type-casting
>
> --
>
> Vicio
>
>
0 Kudos
Message 3 of 6
(2,831 Views)
Try "String To Byte Array"



Keysano wrote:

> decimal string to number convert "9" to decimal 9 not to 57 wich is its
> ascii value. Also string to hex doesn't works in my case... I need a
> different conversion type..
> Excuse me for my english.. 🙂
> "Vicio" ha scritto nel messaggio
> news:yBmwc.288498$hc5.12610054@news3.tin.it...
>
>>"Keysano" ha scritto nel messaggio
>>news:vAkwc.23957$G%.7394@tornado.fastwebnet.it...
>>
>>>I have to convert a char in it's ASCII decimal value.. any idea?
>>>
>>>
>>>
>>
>>Use the function "decimal string to number" or the type-casting
>>
>>--
>>
>>Vicio
>>
>>
>
>
>
0 Kudos
Message 4 of 6
(2,831 Views)
It works!! Thank you westscape you saved my weekend!

Gian Marco


"westscape" ha scritto nel messaggio
news:40c20620$0$20511$cc9e4d1f@news-text.dial.pipex.com...
> Try "String To Byte Array"
>
>
>
> Keysano wrote:
>
> > decimal string to number convert "9" to decimal 9 not to 57 wich is its
> > ascii value. Also string to hex doesn't works in my case... I need a
> > different conversion type..
> > Excuse me for my english.. 🙂
> > "Vicio" ha scritto nel messaggio
> > news:yBmwc.288498$hc5.12610054@news3.tin.it...
> >
> >>"Keysano" ha scritto nel messaggio
> >>news:vAkwc.23957$G%.7394@tornado.fastwebnet.it...
> >>
> >>>I have to convert a char in it's ASCII decimal
value.. any idea?
> >>>
> >>>
> >>>
> >>
> >>Use the function "decimal string to number" or the type-casting
> >>
> >>--
> >>
> >>Vicio
> >>
> >>
> >
> >
> >
0 Kudos
Message 5 of 6
(2,831 Views)
You may also use the typecast function as mentioned earlier if you want a value and not an array.
0 Kudos
Message 6 of 6
(2,831 Views)