Microsoft KB Archive/60686

Word: Macro Functions and Descriptions

PSS ID Number: Q60686 Article last modified on 11-02-1994

5.00 5.50 6.00

MS-DOS

= SUMMARY =

The following math and string manipulation functions can be used in macros. Descriptions and syntax are given for each.

= MORE INFORMATION =

Function Description ——– ———–

INT Truncates a number to the next smallest integer.

Syntax: INT(expression). LEN Yields the number of characters in a character string.

Syntax: LEN(expression). MID Yields the value of a segment of a character string. The segment is determined by supplying two numbers – the first represents the character at which the segment starts; the second represents the segment length (total number of characters in the segment).

Syntax: MID(variable,x,y), where x is the start, and y is the length. concatenation Joins two or more strings together with the SET instruction.

Syntax: SET variable = string1 string2 string3. Leave a space between the names of each string to                     be joined. KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.