Tag Archives: control statements

Dynamically creating variables in a program

There are situations where it may be useful to create variables at runtime in an IDL program, taking the variable names from a string array. Though there are a couple ways of doing this, I’d like to use SCOPE_VARFETCH here, … Continue reading

Posted in data access, language | Tagged , , , , | 1 Comment

A small, helpful routine

A small item this week because it’s Thanksgiving. In DG, you can close all open windows with a statement like this: IDL> while !d.window ne -1 do wdelete, !d.window Here’s my two-line equivalent in NG, wrapped into a procedure: pro … Continue reading

Posted in language, programming | Tagged , , , | 4 Comments