Skip to content

Get_Profile_String

Obsolete

This command is obsolete. Use the cRegistry class for accessing the Windows Registry in DataFlex.

See Also

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-keyname is found in the DataFlex branch, the DEFAULTS section is searched for a value named value-name. If value-name is found there, its contents are returned in variable. All other find failures result in a null return value.

  • variable does 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.