MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Button Question?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84576] Button Question?
  • From: John <jwa0 at lehigh.edu>
  • Date: Sat, 5 Jan 2008 04:35:20 -0500 (EST)

Evaluation of the cell listed below prints a button, but clicking on
the button does not print the random numbers. Why is ButtonEvaluator,
not mispelled, printed in red?

Error message says a  button function option is not a rule.

Cell[ButtonBox["Simulate", Active -> True,
   ButtonFunction -> (Needs["MultivariateStatistics`"];
     Print[RandomInteger[
       MultivariateStatistics`MultinomialDistribution[
        100, {1/6, 1/6, 1/6, 1/6, 1/6, 1/6}], 1]]),
   ButtonEvaluator -> Automatic] // DisplayForm, "Output"],

I want the button to work as advertised, but so far no luck.

John



  • Prev by Date: Dynamic stochastic general equilibrium models
  • Next by Date: Re: 3D curve spline
  • Previous by thread: Re: Dynamic stochastic general equilibrium models
  • Next by thread: Re: Button Question?