ToBeReviewed/STRUCTURE/
struct2string.pro
Convert a structure to an "executable string"
struct2string
Utilities
result = struct2string(struct, CUT_IN_STRING=CUT_IN_STRING, MAX_STRUCT_LENGTH=MAX_STRUCT_LENGTH, DIRECT2STRING=DIRECT2STRING)
Parameters
struct
in
required
A structure
Keywords
CUT_IN_STRING
Try it
MAX_STRUCT_LENGTH
default: 10000l
The maximum length of the structure
permitted to convert the structure to string.
DIRECT2STRING
To get a string instead an "executable string"
Examples
IDL> print, struct2string(!d)
create_struct('NAME','X','X_SIZE',891,'Y_SIZE',630,'X_VSIZE'
,891,'Y_VSIZE',630,'X_CH_SIZE',6,'Y_CH_SIZE',10,'X_PX_CM'
,40.0000,'Y_PX_CM',40.0000,'N_COLORS',16777216,'TABLE_SIZE'
,256,'FILL_DIST',1,'WINDOW',32,'UNIT',0,'FLAGS',328124,'ORIGIN'
,[0,0],'ZOOM',[1,1])
Version history
Version
$Id: struct2string.pro 371 2008-08-07 09:32:02Z pinsard $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
2000 07 03
Known issues
Restrictions
Use tostr, cf this function header!
Produced by IDLdoc 2.0.