RUNFileName
(Engine-Level Function)
Description: | Returns the name of the .RUN file for a module including the full drive and path. |
Returns: | Text |
Usage: | Script or steady state. |
Function Groups: | Compilation and On-Line Modifications, File I/O, Advanced Module |
Related to: | ChildDocs | Dir | FileFind | ModuleFileName |
Format: | RUNFileName(Module) |
Parameters: |
Module |
Required. 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.