Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

$%PATCODE^STRING

Draft MDC Standard

7.1.6.4.4 $%PATCODE^STRING

PATCODE^STRING : BOOLEAN ( A : STRING , PAT : STRING , CHARMOD : O )

$%PATCODE^STRING returns a tvexpr that indicates whether or not the value passed as its first parameter matches the specified patcode in the specified character set.

Editor’s note:
It would seem to be that this function is a function thar related CHARACTER more than to STRINGs in general. Suggest to specify it as $%PATCODE^CHARACTER.

If the value of CHARMOD is a namevalue referencing a gvn, then the conversion algorithm used is that specified in ^$Global for that gvn. If the value of CHARMOD is a charsetexpr, then the conversion algorithm used is that specified in ^$Character for that character set profile. If CHARMOD is not specified, or the node specified above does not exist, then the conversion algorithm used is that specified as the default for the process in ^$Job.

If CHARMOD references a gvn, it must be either of the form ^ name or of the form ^ VB environment VB name

Click here for $%PATCODE^STRING sample code

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 14-Nov-2023, 21:33:11.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)