Skip to content

Get_Program_Key

Obsolete

This command is obsolete. There is no DataFlex equivalent for this option.

Purpose

To return the name of the registry key (if any) by which the DFRUN command executed the program.

Syntax

Get_Program_Key To {variable}

Argument

Argument Explanation
variable A variable into which the name of the registry key is returned.

What It Does

This command returns the (registry) program-key name that was used with the DFRUN operating-system command to execute the currently running program. If the program is started with the DataFlex program name, the program key returns an empty string.

Example

The following example returns the name of the program key used to execute the program. The DataFlex value for the registry key contains the name of the program to execute.

String sProgram
Get_Program_Key to sProgram
if (sProgram NE "");
    Showln "The program key used to execute this program is " sProgram
else;
    Showln "The program was run without a key."