Otis, you suggest:

*var molf2 = "' + molf1 + '"; load "@molf2";*

That's a fine way to do it. The LOAD command looks for "@..." and does that
special case conversion. An alternative load command is:

LOAD VAR molf2

or

LOAD VAR "mol2"

Bob


On Wed, May 24, 2017 at 9:09 PM, Otis Rothenberger <osrot...@chemagic.org>
wrote:

> Bob,
>
> This goes back almost a year to an JmolScript @ question. You resolved my
> @ problem in a detailed reply.
>
> Reviewing this old note, another question comes up. I do the following all
> the time:
>
> var molf2 = "' + molf1 + '"; load "@molf2";
>
> molf1 is a molfile string. Does this fall into the category of NOT best
> practice with @?
>
> Otis
>
> --
> Otis Rothenberger
> o...@chemagic.org
> http://chemagic.org
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to