<< 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. usefull to avoid the use of execute

topcreatefunc

result = createfunc(command, FILENAMEIN=FILENAMEIN, KWDLIST=KWDLIST, _extra=_extra)

Parameters

command        in required

a scalar string defining the result to be byven back by the function. (see examples)

Keywords

FILENAMEIN        in

name of the funccedure to be created. 'for_createfunc.pro' by default

KWDLIST        in

a 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 your keywords to the created function. SIDE EFFECTS: ends the function name with '.pro' if needed

Examples

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

Version history

History

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

Known issues

Restrictions

arguments can be given only through keywords
Produced by IDLdoc 2.0.