Re: Module command acting funny...
- To: mathgroup at smc.vnet.net
- Subject: [mg58262] Re: Module command acting funny...
- From: David Bailey <dave at Remove_Thisdbailey.co.uk>
- Date: Sat, 25 Jun 2005 01:56:19 -0400 (EDT)
- References: <d9gb7c$svs$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
plizak wrote: > 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 > Hello, I notice that the argument to computeIndividualCDOPLB is not a pattern (i.e. does not contain an underscore), I wonder if that is what you meant? David Bailey http://www.dbaileyconsultancy.co.uk