Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples
Left Hand Pointer

MWAPI - $WTFIT

M[UMPS] by Example

Right Hand Pointer

M[UMPS] Functions - $WTF[IT]

Introduced in the 1995 ANSI M[UMPS] Windowing Application Programmer's Interface standard.

This function returns a number that indicates which substring of the value specified as a parameter will fit in the specified space when reproduced in a specific font.

SET TXT="This text needs to be printed."
SET F="COURIER",N="NORMAL",PT="POINT"

Reference   Value
$WTFIT(TXT,100,F,12,N,PT)   14

This means that $EXTRACT(TXT,1,14) will fit in the space of 100 points.

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-2017 MUMPS Development Committee;
Copyright © Examples: 1995-2017 Ed de Moel;
Copyright © Annotations: 2003-2017 Jacquard Systems Research.

The information in this page is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

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 12-Sep-2014, 13:16:47 .

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