Microsoft KB Archive/35847: Difference between revisions

From BetaArchive Wiki
m (Text replacement - ">" to ">")
m (X010 moved page Microsoft KB Archive/Q35847 to Microsoft KB Archive/35847 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
 
(No difference)

Latest revision as of 19:21, 12 August 2020

Macro Ability to Embed Variables in Prompts

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

5.00

MS-DOS

SUMMARY

Embedded variables in prompts can be done by inserting the variables in chevrons into the message, pause, set, or ask instruction. The following is an example:

<<set variable=? text<<thing>>more text>>

<<message text<<thing>>more text>>

<<pause text<<thing>>more text>>

Text strings in the instructions below do not have to be quoted. Variables embedded in the strings have to be surrounded by chevrons, as follows:

<<ask variable=?text>>

<<set variable=?text>>

<<message text>>

<<pause text>>

Text strings in the instructions below have to be quoted. Everything else is assumed to be a variable, as follows:

<<set variable="text">>

<<if variable op “text”">>

<<while variable op “text”>>

<<set result=len("text")>>

<<set result=mid("text",start,count)>>

<<set result=“text1” variable “text2”>>

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.