Can metacharacters be used in a select prompt?

Chris Sharman chris.sharman@ccagroup.co.uk
Fri, 28 Feb 2003 08:41:08 -0000


>Quick question:  HP3000 PH 8.1.9 C2
> 
>I know that you can use something like bell@ in a field when supplying
select >values in select mode, but is there a way to supply metacharacter
patterns?  I >know I can write the code to make this work but I don't want
to write code.  I >want to use native PH to do the work.
 
Yes.

The user should enter % to say treat this expression as a pattern.

eg "%^(#|^)* *" for an identifier (alpha optionally followed by
alphanumerics, with space padding to the end of the field).

On a similar line, does anyone know how to have metacharacters treated
normally when entering a choose parm ?
Eg, we have email addresses keyed, but the find doesn't work, because the
"@" always gets treated specially (PH 710G3, VMS 7.3). I'd thought it was
only special at the end of an expression, but that doesn't seem to be the
case. In fact I don't know what it means in the middle of an expression, but
it finds precious little.

Chris


-----------------------------------------------------------------------

Any views expressed in this message are those of the sender and not
necessarily those of CCA Group.  The unauthorized use, disclosure,
copying or alteration of this message is forbidden.  The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed.  Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.