🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#32446
From: Bruce Roberts
Date: Sat, 23 Nov 2002 03:28
9 lines
1418 bytes
"Martin Potokar" <gomfp@hotmail.com> wrote in message
news:3ddddf95$1@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.

allDigits := StrToIntDef (theString, -1) = StrToIntDef (theString, 0);
Technical Details
Message-ID: <3ddef5f0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!208.184.7.66.MISMATCH!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3ddddf95$1@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 20:15:58 PST
From: "Bruce Roberts" <ber@attcanada.net>
Newsgroups: borland.public.delphi.language.objectpascal
References: <3ddddf95$1@newsgroups.borland.com>
Subject: Re: How to check if a string value contains a numeric character
Date: Fri, 22 Nov 2002 22:28:12 -0500
Lines: 12
Organization: Roberts Browne Limited
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 142.194.183.142
Message-ID: <3ddef5f0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038022128 142.194.183.142 (22 Nov 2002 19:28:48 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!208.184.7.66.MISMATCH!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail