Hi,

This should always work, and has always worked:

Run If: (NOT 'Field' LIKE "[^ ][^ ][^ ][^ ][^ ][^ ]%")

Now the spaces seems a little redundant. In a client, you can not enter spaces
only, the client will truncate leading and trailing whitespace. API-programs
could send in leading/trailing whitespace though.

If you skip the non-space validation, you can use underscores to match anything:
Run If: (NOT 'Field' LIKE "_______%")

        Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011)

Ask the Remedy Licensing Experts (Best R.O.I. Award at WWRUG10/11/12/13):
* RRR|License - Not enough Remedy licenses? Save money by optimizing.
* RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs.
Find these products, and many free tools and utilities, at http://rrr.se.

> Have there been any new operators to assist in string evaluation in v8.x?
>
> I have the old classic requirement on character fields with 0 data length:
>
> "User must enter at least 7 characters in the field.  Validation must ensure
> that the data entered is not just spaces to get past the validation."
>
> I have the table of 7.6.x functions and wanted to check if a nicer/cleaner
> single one existed yet?
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to