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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users