MathGroup Archive 2005

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

Search the Archive

Re: GUIKit: <<file quirk

  • To: mathgroup at
  • Subject: [mg53566] Re: [mg53546] GUIKit: <<file quirk
  • From: Andrew Dabrowski <dabrowsa at>
  • Date: Tue, 18 Jan 2005 05:08:09 -0500 (EST)
  • Organization: Indiana University
  • References: <> <>
  • Sender: owner-wri-mathgroup at

Sorry, I exagerrated the problem, and it may not have anything to do 
with GUIKit.  The example I gave actually works fine with or without the 

But I have recently run into the problem of syntax errors coming up when 
reading a .m file into a Script.  The problem seemed to that two 
consecutive commands were run together, and putting semicolons in solved 
the problem.  Maybe this is an issue with Get[] more generally then just 
with GUIKit, or maybe there's something I don't understand about Get[] 
and .m files.

Jeff Adams wrote:

> On Jan 16, 2005, at 9:24 PM, Andrew Dabrowski wrote:
>> I've noticed that if you want to read a file into a running GUI you must
>> be sure the file has semicolons after every line.  If the file e.g. 
>> contains
>> f[2]=5
>> f[3]=8
>> the GUI kernel will understand this as
>> f[2]=5 f[3]=8.
>> If the file instead has the semicolons
>> f[2]=5;
>> f[3]=8;
>> then it works fine.
>> This means there will be a problem using Save[] to save function data,
>> since Save[] does not put the semicolons in.
>> Is there any easy workaround?
> Hello,
> Get[] can load any file that was created with Save so you should be able to
> include Script[ Get["someSaveFile"]] within your GUIKit definition to 
> load any data
> saved out with Save, or even a Script source file that is written not to 
> include semi-colon lines.
> Perhaps you are talking about the actual content of an external Script 
> file?
> If you could forward me a specific example I can investigate where we 
> might be able to improve the current functionality.
> Jeff Adams
> Wolfram Research

  • Prev by Date: Re: about PATTERNS
  • Next by Date: Re: about PATTERNS
  • Previous by thread: Re: GUIKit: <<file quirk
  • Next by thread: Re: GUIKit: <<file quirk