Message Boards Message Boards

GROUPS:

Locating variables in nested modules

Posted 4 months ago
554 Views
|
1 Reply
|
0 Total Likes
|

This code works.

Module [{x1, x2},
  Module [{},
   x1 = "111";
   ];
  Module [{},
   x2 = "222";
   ];
  Row [{x1, "-", x2}]
  ]

The same code separated into three attachments does not work. What am I doing wrong? What is the solution? Thanks a lot.

Attachments:
Posted 4 months ago

Check out the "possible issues" section of the documentation for NotebookEvaluate[]. It looks like you might have to set the context.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract