In this section, we'll create a simple "Hello World" program consisting of two .pro files:
PRO hello_main name = '' READ, name, PROMPT='Enter Name: ' str = HELLO_WHO(name) PRINT, str END
hello_main.pro in the main IDL directory (which the Save As dialog should already show).FUNCTION hello_who, who RETURN, 'Hello ' + who END
hello_who.pro in the main IDL directory.We now have a simple program consisting of a user-defined procedure, which calls a user-defined function.