MathGroup Archive 2009

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

Search the Archive

Re: Using For[] for Generating Multiple Output Cells



BenT wrote:

> Consider this v7 code which works as intended:

> 

> x = 65;

> n0 = Names[

>    StringJoin[

>     "System`", FromCharacterCode[x], "*"

>     ]

>    ];

> Grid[Partition[n0, 3], Alignment -> Left, Frame -> All]

> 

> And now consider this code which allows far more versatility, for

> consecutive multiple outputs using the For[] function. BUT for some

> reason it doesn't appear to work at all! Does anyone know why? Can it

> be "fixed" as intended?

> 

> For[x = 65, x < 91, x++,

>  n0 = Names[

>    StringJoin[

>     "System`", FromCharacterCode[x], "*"

>     ]

>    ];

>  Grid[Partition[n0, 3], Alignment -> Left, Frame -> All]

>  ]

> 

> --- Benjamin Tubb

> 

Hi Benjamin,

you simply forgot to print your output.

For will return "Null".

Daniel




  • Prev by Date: Re: Displaying results in a column
  • Next by Date: Scripts to stop/start windows programs/services, help w execute on
  • Previous by thread: Re: Using For[] for Generating Multiple Output Cells
  • Next by thread: Re: Using For[] for Generating Multiple Output Cells