$ x = ["C", "H", "O"];
$ print x
C
H
O
$ print x[1]
C
$
You sure there's a problem? This both in 12.2 and 12.3....
What's the exact context? Maybe you have a variable within a function or
$ {var x = ["C","H","O"]}print x
$
$ {x = ["C","H","O"]}print x
C
H
O
$
2012/3/8 Angel Herráez <[email protected]>
> Hi all
>
> I'm trying to follow some kind of bug in a script by means of
> checking the values of a declared array, but cannot manage to do it.
> I guess there has been some changes along Jmol versions that I cannot
> find.
>
> x = ["C", "H", "O"];
> print x[1];
> // prints C in Jmol 11.8.24
>
> But the same code prints nothing in 12.2.17 (or 16)
>
> I read that there were changes in arrays being now objects, but can't
> see how that applies to my problem.
> What do I need to change?
>
> Thanks for any hints
>
>
>
>
>
>
>
> ·
> Dr. Angel Herráez
> Dep. Bioquímica y Biología Molecular, Universidad de Alcalá
> E-28871 Alcalá de Henares (Madrid), Spain
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> 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
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users