🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #32529

Re: How to check if a string value contains a numeric character

#32529
From: Martin James
Date: Fri, 22 Nov 2002 09:53
24 lines
1564 bytes
Jens Geyer <jgx@vsx.net> wrote in message
news:3dddf0e7@newsgroups.borland.com...
>
> > Given a string with five characters, how can I determine through
code as
> to
> > whether or not the string contains all numeric characters? Thank
you ahead
> > of time.
> >
>
> Ok, let me do your homework.
>

Or, even more impressive, use a set:

if not myString[index] in ['0'..'9'] then....

If my solution gets higher marks that others that use a const string,
please send me the fee instead.  Jens can go hungry.

Rgds,
Martin :)
Technical Details
Message-ID: <3dddff49@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3ddddf95$1@newsgroups.borland.com> <3dddf0e7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,309aca370994f001
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2002-11-22 02:16:23 PST
From: "Martin James" <mjames_falcon@dial.pipex.com>
Newsgroups: borland.public.delphi.language.objectpascal
References: <3ddddf95$1@newsgroups.borland.com> <3dddf0e7@newsgroups.borland.com>
Subject: Re: How to check if a string value contains a numeric character
Date: Fri, 22 Nov 2002 09:53:32 -0000
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 62.188.13.195
Message-ID: <3dddff49@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1037958985 62.188.13.195 (22 Nov 2002 01:56:25 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail