Re: [WebDNA] Check to see if certain characters are numeric?

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 113243
interpreted = N
texte = 831 --Apple-Mail=_5549B8E6-2C69-4FBD-AD0D-73923377C5FC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Something like this ? [SHOWIF [GREP search=3D([^a-zA-Z ])&replace=3D*][getchars = start=3D1&end=3Dw&trim=3Dboth][MODELYEAR][/getchars][/GREP]^*]NON-NUMBERS = DETECTED[/SHOWIF] Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@idfk.com.au > On 13 Dec. 2016, at 11:27, dale wrote: >=20 > Hi, >=20 > Is there a relatively easy way to check to see if the first 4 = characters of a field are numeric? I'm pulling data from another = database where the first 4 characters of a field could be the model year = of the vehicle or it would be the manufacturer name e.g. International, = Freightliner, etc. There is also the possibility that the field could be = blank. >=20 > Thanks >=20 > Dale > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_5549B8E6-2C69-4FBD-AD0D-73923377C5FC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Something like this ?

[SHOWIF [GREP search=3D([^a-zA-Z = ])&replace=3D*][getchars = start=3D1&end=3Dw&trim=3Dboth][MODELYEAR][/getchars][/GREP]^*]NON-= NUMBERS DETECTED[/SHOWIF]





Kind regards

Stuart Tremain
Pharoah Lane = Software
AUSTRALIA






On 13 Dec. 2016, at 11:27, dale <dtherio@gmail.com> = wrote:

Hi,

Is there a relatively easy way to check to see if the first 4 = characters of a field are numeric? I'm pulling data from another = database where the first 4 characters of a field could be the model year = of the vehicle or it would be the manufacturer name e.g. International, = Freightliner, etc. There is also the possibility that the field could be = blank.

Thanks

Dale
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_5549B8E6-2C69-4FBD-AD0D-73923377C5FC-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Check to see if certain characters are numeric? (Stuart Tremain 2016)
  2. [WebDNA] Check to see if certain characters are numeric? (dale 2016)
831 --Apple-Mail=_5549B8E6-2C69-4FBD-AD0D-73923377C5FC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Something like this ? [SHOWIF [GREP search=3D([^a-zA-Z ])&replace=3D*][getchars = start=3D1&end=3Dw&trim=3Dboth][MODELYEAR][/getchars][/GREP]^*]NON-NUMBERS = DETECTED[/SHOWIF] Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@idfk.com.au > On 13 Dec. 2016, at 11:27, dale wrote: >=20 > Hi, >=20 > Is there a relatively easy way to check to see if the first 4 = characters of a field are numeric? I'm pulling data from another = database where the first 4 characters of a field could be the model year = of the vehicle or it would be the manufacturer name e.g. International, = Freightliner, etc. There is also the possibility that the field could be = blank. >=20 > Thanks >=20 > Dale > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_5549B8E6-2C69-4FBD-AD0D-73923377C5FC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Something like this ?

[SHOWIF [GREP search=3D([^a-zA-Z = ])&replace=3D*][getchars = start=3D1&end=3Dw&trim=3Dboth][MODELYEAR][/getchars][/GREP]^*]NON-= NUMBERS DETECTED[/SHOWIF]





Kind regards

Stuart Tremain
Pharoah Lane = Software
AUSTRALIA






On 13 Dec. 2016, at 11:27, dale <dtherio@gmail.com> = wrote:

Hi,

Is there a relatively easy way to check to see if the first 4 = characters of a field are numeric? I'm pulling data from another = database where the first 4 characters of a field could be the model year = of the vehicle or it would be the manufacturer name e.g. International, = Freightliner, etc. There is also the possibility that the field could be = blank.

Thanks

Dale
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_5549B8E6-2C69-4FBD-AD0D-73923377C5FC-- . Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

frames & carts (1997) Frames and WebCat (1997) hidden (phantom) file downloads (2000) 2.0 Info (1997) Getting total number of items ordered (1997) Adding up line items. (2000) Error Msg (1998) Updated EditPlus Tags (2004) WebDNA dying or ... ? (2005) Bug or syntax error on my part? (1997) creative use of webcatalog (1998) [search] in formulas.db (1997) [WebDNA] anyone get MaxMind geolite city working? (2012) Credit card types (1997) Close-to Comparison Code (1998) [WebDNA] OT - JS help (2008) Help! WebCat2 bug (1997) problem with NT beta (1997) Multiple Ad databases? (1997) Losing file paths? (1999)