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

Utilities/

createfunc.pro

write an IDL function, compile it and execute it. useful to avoid the use of execute

topcreatefunc

result = createfunc(command, FILENAMEIN=FILENAMEIN, KWDLIST=vector string, _EXTRA=_EXTRA)

Parameters

command        in required type: scalar string

defining the result to be given back by the function. (see examples)

Keywords

FILENAMEIN        in default: for_createfunc.pro

name of the function to be created.

KWDLIST        in type: vector string

to specify a list of keywords that must be included in the function definition. Warning: the string must start with a ',' for example: KWDLIST = ', TOTO = toto'

_EXTRA       

Used to pass keywords to the created function.

Examples

IDL> print, createfunc('3*2', filename='test') IDL> print, createfunc('3*two', filename = 'test' $ IDL> , kwdlist ='two = two', two = 2)

Version history

Version

$Id: createfunc.pro 243 2007-04-12 08:52:32Z smasson $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) May 2005

Known issues

Restrictions

- arguments can be given only through keywords; - ends the function name with '.pro' if needed.

Statistics

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