Re: length function

From: Leo Van Nieuwenhuyse <leo.van.nieuwenhuyse_at_pandora.be>
Date: Tue, 9 Nov 1999 23:48:28 +0100
Message-ID: <Xv1W3.403$Ni3.13745_at_afrodite.telenet-ops.be>


If your fields are numeric you should do: LENGTH(TO_CHAR(HOME_AREA, 'your format mask'))
Joet Singh <jsingh_at_bigfoot.com> schreef in berichtnieuws tpMV3.14300$Ph7.98922_at_insync...
> Hi All,
> I am trying to do a check to make sure that when a person fills out a
phone
> number field that the it contains correct number of digits. I have a
check
> to do this but it keeps running into a problem. The check is in the form
of
> a if statement:
> If length(home_area)=3 and length(home_three)=3 and length(home_four)=4
then
> *do Something*
> else *Do something*
> Now if the value being inserted in the home_area field is 123 this is ok
> then length of this string is 3 but is the value is 012 the length of this
> string is 2. Now how do I tell the program that the string is really 3
> digits long and the "0" value is not a null value? Any ideas? Thanks in
> advance
>
>
>
>
Received on Tue Nov 09 1999 - 23:48:28 CET

Original text of this message