gagangoomer Posted September 1, 2014 Report Share Posted September 1, 2014 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 CodeSwitch( %EOB_Type% )Case: A Variable Set String %Den_code% to "B06"End CaseCase: B Variable Set String %Den_code% to "B07"End CaseCase: C Variable Set String %Den_code% to "B12"End CaseCase: D Variable Set String %Den_code% to "B14"End CaseCase: E Variable Set String %Den_code% to "B16"End CaseCase: F Variable Set String %Den_code% to "B21"End CaseCase: G Variable Set String %Den_code% to "B55"End CaseCase: H Variable Set String %Den_code% to "B94"End CaseCase: I Variable Set String %Den_code% to "BB9"End CaseCase: J Variable Set String %Den_code% to "BG8"End CaseCase: K Variable Set String %Den_code% to "BJ1"End CaseCase: L Variable Set String %Den_code% to "BC1"End CaseCase: M Variable Set String %Den_code% to "BGI"End CaseCase: N Variable Set String %Den_code% to "BX3"End CaseCase: O Variable Set String %Den_code% to "J33"End CaseCase: P Variable Set String %Den_code% to "J60"End CaseCase: Q Variable Set String %Den_code% to "J95"End CaseCase: R Variable Set String %Den_code% to "J97"End CaseCase: S Variable Set String %Den_code% to "J99"End CaseCase: T Variable Set String %Den_code% to "K00"End CaseCase: U Variable Set String %Den_code% to "K05"End CaseCase: V Variable Set String %Den_code% to "K06"End CaseCase: W Variable Set String %Den_code% to "K14"End CaseCase: X Variable Set String %Den_code% to "K16"End CaseCase: Y Variable Set String %Den_code% to "K18"End CaseCase: Z Variable Set String %Den_code% to "K23"End CaseCase: 0 Variable Set String %Den_code% to "K27"End CaseCase: 1 Variable Set String %Den_code% to "K29"End CaseCase: 2 Variable Set String %Den_code% to "K33"End CaseCase: 3 Variable Set String %Den_code% to "K34"End CaseCase: 4 Variable Set String %Den_code% to "K36"End CaseCase: 5 Variable Set String %Den_code% to "K37"End CaseCase: 6 Variable Set String %Den_code% to "K44"End CaseCase: 7 Variable Set String %Den_code% to "K45"End CaseCase: 8 Variable Set String %Den_code% to "K46"End CaseCase: 9 Variable Set String %Den_code% to "K48"End CaseCase: AA Variable Set String %Den_code% to "K49"End CaseCase: BB Variable Set String %Den_code% to "K52"End CaseCase: CC Variable Set String %Den_code% to "K57"End CaseCase: DD Variable Set String %Den_code% to "K58"End CaseCase: EE Variable Set String %Den_code% to "K59"End CaseCase: FF Variable Set String %Den_code% to "K60"End CaseCase: GG Variable Set String %Den_code% to "K62"End CaseCase: HH Variable Set String %Den_code% to "K74"End CaseCase: II Variable Set String %Den_code% to "K75"End CaseCase: JJ Variable Set String %Den_code% to "K76"End CaseCase: KK Variable Set String %Den_code% to "K78"End CaseCase: LL Variable Set String %Den_code% to "K82"End CaseCase: MM Variable Set String %Den_code% to "K89"End CaseCase: NN Variable Set String %Den_code% to "K95"End CaseCase: OO Variable Set String %Den_code% to "KA2"End CaseCase: PP Variable Set String %Den_code% to "KBA"End CaseCase: QQ Variable Set String %Den_code% to "KBD"End CaseCase: RR Variable Set String %Den_code% to "KBF"End CaseCase: SS Variable Set String %Den_code% to "KBM"End CaseCase: TT Variable Set String %Den_code% to "KBX"End CaseCase: UU Variable Set String %Den_code% to "KC0"End CaseCase: VV Variable Set String %Den_code%: PromptEnd CaseEnd SwitchText Box Display: %EOB_Type%Default Case Quote Link to comment Share on other sites More sharing options...
duchi Posted September 1, 2014 Report Share Posted September 1, 2014 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. Quote Link to comment Share on other sites More sharing options...
rberq Posted September 2, 2014 Report Share Posted September 2, 2014 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.