<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ToBeReviewed/STRUCTURE/

struct2string.pro

Convert a structure to an "executable string"

topstruct2string 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       

The maximum length of the structure permetted to convert the structure to string. Default is 10000l.

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 150 2006-08-09 10:12:54Z navarro $

History

Known issues

Restrictions

Use tostr.pro, cf this function header!
Produced by IDLdoc 2.0.