<<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        default: 10000l

The maximum length of the structure permetted 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 157 2006-08-21 09:01:50Z navarro $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) 2000 07 03

Known issues

Restrictions

Use tostr.pro, cf this function header!

Statistics

McCabe cyclic 13
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.