Mysterious - Running notebook produces no effect
- To: mathgroup at smc.vnet.net
- Subject: [mg19477] Mysterious - Running notebook produces no effect
- From: "Neal E. Tornberg" <neal.e.tornberg at boeing.com>
- Date: Sat, 28 Aug 1999 15:53:06 -0400
- Organization: Boeing
- Sender: owner-wri-mathgroup at wolfram.com
That's not quite true, let me explain: Running Mathematica 4.0 under WindowsNT 4 If I construct a notebook, FooBar.nb with the single cell: FooBar[s_String] := StringReverse[s] And then attempt to run it line-by-line from another notebook, I get: In:= FooBar[" abcd"] Out= FooBar[" abcd"] In:= ntNb = NotebookOpen["FooBar.nb", Visible -> False] Out= NotebookObject[\[LeftSkeleton]"FooBar.nb"\[RightSkeleton]] In:= SelectionMove[ntNb, All, Notebook] In:= SelectionEvaluate[ntNb] In:= NotebookClose[ntNb] In:= Clear[ntNb] In:= FooBar[" abcd"] Out= "dcba " So far so good. Now if I reinitialize everything and simply tell the Kernel to evaluate the second notebook, FooBar remains undefined! What's Happening???? (it doesn't have anything to do with StringReverse - that was just a restricted example) -- Neal E. Tornberg neal.e.tornberg at boeing.com Nobody here thinks I speak for Boeing. You shouldn't either.