Jump to content
Macro Express Forums

Recommended Posts

Posted

Hey everyone, 

 

I enabled the prompt to create variables when they don't exist.

Options -> Preferences -> General -> Dialogs -> Prompt the user to create a variable that is not defined.

For some odd reason, I don't get the prompt when I save a macro on one of my PCs. I only get the prompt when I edit each line of code that has a variable in it that doesn't exist. While on the other PCs I can just save the entire macro and get a prompt for each undefined variable.

 

Did I miss something in the options?

 

 

Posted

In my experience it will only prompt you when your in a command edit dialog. Saving or other operations will not trigger a prompt. Mostly I've seen this when I copy parts of code from another macro, which is another reason why it's a good idea to create many small macros to act as functions or subroutines. Never write the same code twice. 

But AFAIK, what you are experiencing is normal and there's no option that will cause the scripting editor to prompt you to declare variables when saving. 

Posted

I keep that checkbox unticked. I receive no prompts or notifications when I create new variables.

 

Macro Express almost always correctly guesses the variable type, so not getting prompted is a time saver. But when the guess is wrong, it's quick to fix.

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