Microsoft KB Archive/35847: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
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/")
 
(2 intermediate revisions by the same user not shown)
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:


&lt;&lt;set variable=? text&lt;<thing>&gt;more text&gt;&gt;
<<set variable=? text<<thing>>more text>>


&lt;&lt;message text&lt;<thing>&gt;more text&gt;&gt;
<<message text<<thing>>more text>>


&lt;&lt;pause text&lt;<thing>&gt;more text&gt;&gt;
<<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:


&lt;<ask variable=?text>&gt;
<<ask variable=?text>>


&lt;<set variable=?text>&gt;
<<set variable=?text>>


&lt;<message text>&gt;
<<message text>>


&lt;<pause text>&gt;
<<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:


&lt;<set variable="text">&gt;
<<set variable="text">>


&lt;&lt;if variable op “text”&quot;&gt;&gt;
<<if variable op “text”&quot;>>


&lt;&lt;while variable op “text”&gt;&gt;
<<while variable op “text”>>


&lt;<set result=len("text")>&gt;
<<set result=len("text")>>


&lt;<set result=mid("text",start,count)>&gt;
<<set result=mid("text",start,count)>>


&lt;&lt;set result=“text1” variable “text2”&gt;&gt;
<<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.

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.