comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to tell it is character or it is number?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to tell it is character or it is number? [message #55211 is a reply to message #55209] Tue, 07 August 2007 10:48 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
just use the byte function and check the values. Numbers 0-9 have ASCII
values of 48-57 dec or 30-39 hex. Haje


"queiny" <queiny98@yahoo.com> wrote in message
news:1186499635.496862.33320@d55g2000hsg.googlegroups.com...
> Hi,
>
> I am reading in many line of mixed characters and numbers.
>
> AA,01,02,003,andefg
> BB,02,03,006,edjkflg
> ......
> FF,01,02,abc,eirjfdkf
> ......
>
> I need information from the 4th field, which can be either number or
> character. After I parsed the long records, I singled out this field.
> Is there a way I can tell whether it is numbers or it is characters?
> 'fix' command can convert the numbers, it will give an error message
> then continue to the execution.
>
> Thanks,
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Basic Event Handling
Next Topic: question regarding 3d plotting

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 20:54:29 PDT 2025

Total time taken to generate the page: 0.63839 seconds