Get_Profile_String
Obsolete
This command is obsolete. Use the cRegistry class for accessing the Windows Registry in DataFlex.
Purpose
To return the value of a setting from the DataFlex branch under SOFTWARE in the Registry.
Syntax
Get_Profile_String {sub-keyname} {value-name} To {variable}
Argument Explanation
-
sub-keyname: The name of a subkey of the default DataFlex path defined as "Data Access Corporation\DataFlex\5" for DataFlex 5.
-
value-name: The name of a value defined for the key
sub-keyname. -
variable: A string variable into which the contents of the registry value are returned.
What It Does
Get_Profile_String returns values from the DataFlex registry settings.
string sVDFfilename
Get_Profile_String "BIG" "EXE" To sVDFfilename
In this example, the DataFlex branch is searched for a section labeled BIG and within it, an item named EXE. If such is found, the value is returned to the string sVDFfilename.
Notes
-
If no subkey named
sub-keynameis found in the DataFlex branch, theDEFAULTSsection is searched for a value namedvalue-name. Ifvalue-nameis found there, its contents are returned invariable. All other find failures result in a null return value. -
variabledoes not have to be of Type String; however, if it is of any other type, the possibility that the return value may violate the requirements of the type is present, as it is not in Type String.