Welcome to the Exelis VIS product documentation center! Here you will find reference guides, help documents, and product libraries. Discover the products including ENVI, IDL, and ENVI LiDAR, and solutions developed by Exelis VIS at www.exelisvis.com.


PRO

PRO

The PRO statement defines an IDL procedure.

Examples


The following example demonstrates the use of arguments in a PRO statement:

PRO ADD, A, B

   PRINT, 'A = ', A

   PRINT, 'B = ', B

   A = A + B

   PRINT, 'A = ', A

END



PRO MYPROCEDURE

   X = 5

   ; Call the ADD procedure:

   ADD, 3, X

END



MYPROCEDURE

 

After you run myprocedure.pro, IDL returns:

A =   3
B =   5
A =   8

Syntax


PRO Procedure_Name, argument1, ..., argumentn

   . . .

END

Arguments


argumentn

A parameter that is passed to the procedure.

Keywords


None.

Version History


Original

Introduced



Comments


This page has no comments yet. Be the first one!

© 2013 Exelis Visual Information Solutions