Not a bug -- you can't use "var" on the command line -- it's local to the
script it is given in, and the command line is a single script unto itself.

Only use var within a larger script.

On Tue, Dec 15, 2009 at 4:03 PM, Eric Martz <[email protected]>wrote:

> I find that the statement "var colorKeyIndex = 1" (given externally,
> not inside any function) has no effect on the value of
> "colorKeyIndex". I expected that I could do "var colorKeyIndex = 1",
> externally, when I needed to reset its value. Is this expectation mistaken?
>
> The following dialog gives the results shown in Jmol application
> 11.8.9 and 11.8.13:
>
> $ print colorKeyIndex
>
> $ var colorKeyIndex = 1
> $ print colorKeyIndex
>
> $ colorKeyIndex = 1
> $ print colorKeyIndex
> 1
> $ colorKeyIndex = 321
> $ print colorKeyIndex
> 321
> $ var colorKeyIndex = 1
> $ print colorKeyIndex
> 321
> $
>
> Is this a bug?
>
> Thanks, -Eric
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to