Edits

Kenneth Brody kenbrody at spamcop.net
Fri Nov 29 10:41:18 PST 2013


On 11/29/2013 1:05 PM, ken_wakeman at me.com wrote:
> Gentlemen / Ladies
>
> Does any one have a good edit that would only allow days of the month
>
> 2 digit field that if for example
> If data entered was 1 space
>
> It would convert to 01
>
> Or if space 1 was entered
>
> It would convert to same.
>
> Plus only allow upto 01-31

Assuming the original value is always left-justified:

     ( ( N N & "01"-"31" ) | <0> ("1"-"9") )

Otherwise:

     [{!" "!}] ( ( N N & "01"-"31" ) | <0> ("1"-"9") )

Of course, this doesn't help or February, or the 30-day months.

-- 
Kenneth Brody


More information about the Filepro-list mailing list