Jump to content
Macro Express Forums

Multiple Choice Menu Default Value Not Working


Recommended Posts

Hi there, folks,

 

I'm making a little macro to launch various versions of an application I have. I'd like to set the default choice of the multiple choice menu to B. I've read the help file and the FAQ and the forum post, and they all say the same thing: Variable set string %T[1]% to B and you're golden.

 

The problem is, I've done that (or at least I think I have) and it's not working. Here's my macro:

 

<VARIABLE SET STRING Option="\x00" Destination="%T[1]%" Value="B" NoEmbeddedVars="FALSE"/>
<MULTIPLE CHOICE MENU Style="\x00" Result="\x00" Dest="%version%" Title="Policy Manager Launcher" Prompt="Which version of CA Policy Manager would you like to launch?" Options="9.1\r\n9.2\r\n9.3" Left="Center" Top="Center" Monitor="0" Width="443" Height="296" OnTop="TRUE" Columns="Auto"/>
<SWITCH Variable="%version%"/>
<CASE Value="B"/>
<ACTIVATE OR LAUNCH Title="CA API Gateway - Policy Manager 9.2.00" Exact_Match="FALSE" Wildcards="FALSE" Path="C:\\Program Files (x86)\\CA Technologies\\CA API Gateway Policy Manager 9.2.00.6809\\CA API Gateway Policy Manager.exe" Mode="\x00" Default_Path="TRUE" Wait="1" Wait_For_Program="12"/>
<END CASE/>
<END SWITCH/>

 

If I've missed something simple, which I hope, please let me know. If not, I'd love some help getting the multiple choice menu to have the second option, 9.2, pre-selected.

 

Thanks

Link to comment
Share on other sites

In MEP the variables are declared separately. Look at the variables tab. It's not like modern programming languages where you can declare (dimension) them in the code. Sometimes conditionally. All variables are initiated as soon as the macro starts.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...