kcrane Posted November 9, 2010 Report Share Posted November 9, 2010 Here's the simple run down of what I'm trying to accomplish. I have a database (a simple .ini file) with information stored for all my clients. Other people have their own databases, and I need Macro Express to recognize who they are so that it runs off their specific database. What I've got going (and it works fine without switch/case) is a macro that updates information based on a multiple choice selection and prompts. My problem is I need a case for each person, where the destination .ini file will be changed based on who they are. Here's how it basically looks... Multiple Choice Menu: %T ## This menu is a list of demographics you can choose to modify--name, age, address, etc Switch (%T%) ## T50 is where each case will be, determined by a separately-run macro (John Doe, Jack Black, etc). Case: John Doe If Variable %T% contains "a", prompt for the 'a' field, then set the 'a' field to a variable Variable modify string - send the contents entered into a specific .ini entry End if After this, I repeat the If/End If statements for each field. When all fields are complete End Case End Switch Am I using the Switch/Case fields incorrectly? The problem I run into is that when I run this macro, it simply crashes with this error: The instruction at 0x7c1b21a referenced memory at 0x00000010. The memory could not be written. If I remove the Case/Switch from it, it runs fine. Thanks for any help here. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.