Thanks, Rolf.

I should start a new thread. There are two additional split functions at 
http://chemapps.stolaf.edu/jmol/docs/index.htm?ver=14.2 , as compared to the 
split function in your link, and these two contain the “true” parameter.  
However, the documentation is kind of spare about the need and use for “true” 
in these additional split functions.

I’ll play around with it and start a new thread when I get stuck.

Matt

On Aug 22, 2015, at 1:42 PM, Rolf Huehne 
<rhue...@fli-leibniz.de<mailto:rhue...@fli-leibniz.de>> wrote:

Am 22.08.15 um 17:23 schrieb Kubasik, Matthew A.:
Thanks, Bob, for this.

Can you clarify the purpose of  “true”, as in:

var x = load(“filename”, TRUE)

I would like to learn when is it necessary.  Your example uses “true” for .png 
but not for .cif.   The help page shows the TRUE flag showing up elsewhere, as 
in the function
x = y.split("", TRUE)

I am uncertain of how to use “true" properly.

The meaning of "true" as a parameter depends on the specific
command/function. You should look up the documentation for the
commands/functions you want to use.

http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm#functions
contains for 'x = load("filename",TRUE)':

"Adding a second parameter TRUE creates a binary associative array
variable x that contains the contents of the file. Data are stored as
raw bytes (but will appear as a string in the PRINT command). If the
file is a standard file, the key "_DATA_" will hold the file data. If
the file is a PNGJ file, the key "_IMAGE_" will hold the image data and
additional files will be keyed by file name. If the file is a zip file,
the files will be keyed by file name, but no "_IMAGE_" key will be
present (presumably). Note that x = load("myfile") without TRUE loads
just the file list for PNGJ or ZIP files, not the actual data."

Regards,
Rolf

------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to