Module command acting funny...
- To: mathgroup at smc.vnet.net
- Subject: [mg58247] Module command acting funny...
- From: "plizak" <plizak at gmail.com>
- Date: Fri, 24 Jun 2005 02:50:14 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
computeIndividualCDOPLB[ filteredTimes ] := Module[ {i}, Print[ "computing IndividualCDOPLB"]; ]; mathcode(A1:A6), result is NULL (which means no errors). But when I call this module, it doesn't run (i.e. the output is not printed. When I remove the semicolon at the end of the print statement, it works! Until I recompile it again and then it doesn't work until I add the semicolon back in. I then just kept the semicolon in and changed the text to print (adding spaces), and it won't run the first time, only after I've modified it will it run. Any idea why this is the case? I don't want my end users having to modify the code sheets after linking to mathematica. I normally would have more code in this module, but I stripped it all out and it still acts funny. Any ideas why this is the case? Am I using Module[ ] properly? Should I use Block[ ] or With[ ] instead? Maybe another technique? Thanks, Peter
- Follow-Ups:
- Re: Module command acting funny...
- From: frank <frank@kuesterei.ch>
- Re: Module command acting funny...