Jump to content
Macro Express Forums

Recommended Posts

Hi,

 

I've created a Multiple Choice Menu with 58 options. I've used swtich case along with MCM. It works fine till the user selects till 36th option i.e. all the Alphabets(A-Z) and numbers(0-9).

 

But the issue starts from 37th option onwards where the values are written in AA, BB, CC...ZZ field. It doesn't display any value when printed. Any suggestions on tis wired behaviour ?

 

 

Here's the command text of the code.

 

Multiple Choice Menu: EOB Code
Switch( %EOB_Type% )
Case: A
Variable Set String %Den_code% to "B06"
End Case
Case: B
Variable Set String %Den_code% to "B07"
End Case
Case: C
Variable Set String %Den_code% to "B12"
End Case
Case: D
Variable Set String %Den_code% to "B14"
End Case
Case: E
Variable Set String %Den_code% to "B16"
End Case
Case: F
Variable Set String %Den_code% to "B21"
End Case
Case: G
Variable Set String %Den_code% to "B55"
End Case
Case: H
Variable Set String %Den_code% to "B94"
End Case
Case: I
Variable Set String %Den_code% to "BB9"
End Case
Case: J
Variable Set String %Den_code% to "BG8"
End Case
Case: K
Variable Set String %Den_code% to "BJ1"
End Case
Case: L
Variable Set String %Den_code% to "BC1"
End Case
Case: M
Variable Set String %Den_code% to "BGI"
End Case
Case: N
Variable Set String %Den_code% to "BX3"
End Case
Case: O
Variable Set String %Den_code% to "J33"
End Case
Case: P
Variable Set String %Den_code% to "J60"
End Case
Case: Q
Variable Set String %Den_code% to "J95"
End Case
Case: R
Variable Set String %Den_code% to "J97"
End Case
Case: S
Variable Set String %Den_code% to "J99"
End Case
Case: T
Variable Set String %Den_code% to "K00"
End Case
Case: U
Variable Set String %Den_code% to "K05"
End Case
Case: V
Variable Set String %Den_code% to "K06"
End Case
Case: W
Variable Set String %Den_code% to "K14"
End Case
Case: X
Variable Set String %Den_code% to "K16"
End Case
Case: Y
Variable Set String %Den_code% to "K18"
End Case
Case: Z
Variable Set String %Den_code% to "K23"
End Case
Case: 0
Variable Set String %Den_code% to "K27"
End Case
Case: 1
Variable Set String %Den_code% to "K29"
End Case
Case: 2
Variable Set String %Den_code% to "K33"
End Case
Case: 3
Variable Set String %Den_code% to "K34"
End Case
Case: 4
Variable Set String %Den_code% to "K36"
End Case
Case: 5
Variable Set String %Den_code% to "K37"
End Case
Case: 6
Variable Set String %Den_code% to "K44"
End Case
Case: 7
Variable Set String %Den_code% to "K45"
End Case
Case: 8
Variable Set String %Den_code% to "K46"
End Case
Case: 9
Variable Set String %Den_code% to "K48"
End Case
Case: AA
Variable Set String %Den_code% to "K49"
End Case
Case: BB
Variable Set String %Den_code% to "K52"
End Case
Case: CC
Variable Set String %Den_code% to "K57"
End Case
Case: DD
Variable Set String %Den_code% to "K58"
End Case
Case: EE
Variable Set String %Den_code% to "K59"
End Case
Case: FF
Variable Set String %Den_code% to "K60"
End Case
Case: GG
Variable Set String %Den_code% to "K62"
End Case
Case: HH
Variable Set String %Den_code% to "K74"
End Case
Case: II
Variable Set String %Den_code% to "K75"
End Case
Case: JJ
Variable Set String %Den_code% to "K76"
End Case
Case: KK
Variable Set String %Den_code% to "K78"
End Case
Case: LL
Variable Set String %Den_code% to "K82"
End Case
Case: MM
Variable Set String %Den_code% to "K89"
End Case
Case: NN
Variable Set String %Den_code% to "K95"
End Case
Case: OO
Variable Set String %Den_code% to "KA2"
End Case
Case: PP
Variable Set String %Den_code% to "KBA"
End Case
Case: QQ
Variable Set String %Den_code% to "KBD"
End Case
Case: RR
Variable Set String %Den_code% to "KBF"
End Case
Case: SS
Variable Set String %Den_code% to "KBM"
End Case
Case: TT
Variable Set String %Den_code% to "KBX"
End Case
Case: UU
Variable Set String %Den_code% to "KC0"
End Case
Case: VV
Variable Set String %Den_code%: Prompt
End Case
End Switch
Text Box Display: %EOB_Type%
Default Case

 

post-11414-0-22213900-1409579107_thumb.jpg

Link to comment
Share on other sites

you're printing %EOB_Type% to the message box which is the result of the multiple choice prompt.

is the value contained in %Den_code% what you want printed?

the text contained between the 2 are the same no?

 

if you want to print the string contained in %Den_code%, then you'll need to change the "Case" statements to point to the specific menu choice text selected in the multiple choice menu and not the choice position i.e. A-ZZ.

 

also, if you are already using the string you want displayed in the multiple choice menu, then i think you can eliminate the Switch/Case routine and just print the menu choice.

Link to comment
Share on other sites

Shouldn't DEFAULT CASE precede END SWITCH?

Though I don't see why that would cause your problem, unless the macro compiler gets mixed up by the out-of-place statement.... It's worth a try to move the DEFAULT CASE, or eliminate it entirely at least for testing.

 

Macro Express 3 only allowed the first 36 options A thru Z and 0 thru 9. So you might be looking at a bug where ME Pro is erroneously still stopping after 36 tests. Are you on the latest version of ME Pro, and/or have you checked with product support on this problem?

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...