Microsoft KB Archive/35847: Difference between revisions
(importing KB archive) |
m (Text replacement - "<" to "<") |
||
Line 11: | Line 11: | ||
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: | 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: | 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: | 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. | KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994. |
Revision as of 09:34, 21 July 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.