RUNFileName

Description:              This function returns the name of the .RUN file for a module including the full drive and path.

Returns:                    Text

Usage:                       Script or Steady State

Format:                      RUNFileName(Module)

Parameters:             Module   { Module }  { required }  { no default: }

                                      Any expression for the module or object value.

Example:

{ Find all modules including root; recurse in }

allMods = ChildDocs(Self(), 1 + 2 + 8);

numMods = ArraySize(allMods, 0);

{ Find the .RUN file names for all modules }

RUNList = New(numMods);

i = 0;

WhileLoop(i < numMods,

         RUNList[i] = ToUpper(RUNFileName(allMods[i]));

   i++; 

);

This group of statements will result in the file names for all .RUN files for the current application being stored in the array called RUNList.

See Also:

ChildDocs | Dir | FileFind | ModuleFileName