[Date Index]
[Thread Index]
[Author Index]
Re: Some interaction in Mathematica 6.0
*To*: mathgroup at smc.vnet.net
*Subject*: [mg85806] Re: Some interaction in Mathematica 6.0
*From*: David Reiss <dbreiss at gmail.com>
*Date*: Sat, 23 Feb 2008 04:21:24 -0500 (EST)
*References*: <fpm6m0$2mk$1@smc.vnet.net>
is there a particular reason why you are only using an InputField? It
makes (I feel) better user interface sense to use the InputField to
type the filename and then a button to initiate the action.
Hope this helps...
--David
On Feb 22, 5:03=A0am, kishkin <kish... at gmail.com> wrote:
> Hello!
>
> Just a little question. Here's some code:
>
> -----------
> matrix = Import["C: \\my_file.xls"]; <- import tables
> matrix = matrix[[1]] <- we need only the first one and we printing
> this table
> -----------
>
> What I want to do is insert InputField where I would be able to type a
> filename and two lines above will be evaluated automatically.
>
> I think there should be something like this:
> -----------
> InputField[Dynamic[matrixFile], String];
>
> Dynamic[
> =A0matrix = Import[matrixFile];
> =A0matrix = matrix[[1]]
> ]
> -----------
>
> This works almost fine. There's a feeling that the output (the one
> with the table) re-counts continuously. Nothing changes but processor
> is busy. Not good.
>
> I think that the problem is in the second line: matrix = matrix[[1]],
> but I do not know exactly what actually causing the problem.
>
> Haven't found anything in the documentation.
>
> Here is the similar example (at least I think it's similar) which
> works totally fine:
> -----------
> x = 1;
> y = 2;
>
> Dynamic[
> =A0j = {x + y, x + y};
> =A0j = j[[1]]
> ]
> -----------
>
> That would be really great if anyone could say something about this
> problem.
>
> Thanks in advance,
> Mike.
Prev by Date:
**Re: about scoping in modules**
Next by Date:
**Re: Using Mathematica figures in MS Word documents**
Previous by thread:
**Some interaction in Mathematica 6.0**
Next by thread:
**Getting the View I want from ListPlot3D and Show**
| |