Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Managing information in the Windows registry – PB Docs 2019 – PowerBuilder Library

Managing information in the Windows registry – PB Docs 2019

Managing
information in the Windows registry

Functions for accessing the
Registry

PowerBuilder provides several functions you can use to manage
application settings in the Windows registry.

Function

Description

RegistryDelete

Deletes a key or a value in a key in the Windows
registry.

RegistryGet

Gets a value from the Windows
registry.

RegistryKeys

Obtains a list of the keys that are child items
(subkeys) one level below a key in the Windows
registry.

RegistrySet

Sets the value for a key and value name in the
Windows registry. If the key or value name does not exist,
RegistrySet creates a new key or value name.

RegistryValues

Obtains a list of named values associated with a
key.

For the complete information for these functions, see the PowerScript Reference.

Overriding initialization
files

You can use the ProfileString functions to obtain information from
the registry instead of from an initialization file. Create a new key
called INIFILEMAPPING at the following location:

To override the WIN.INI file, create a subkey in
INIFILEMAPPING called WIN.INI with the following value:

The examples that follow use the registry to keep track of database
connection parameters. The connection parameters are maintained in the
registry in the MyCoMyAppdatabase branch under
HKEY_CURRENT_USERSoftware.

Reading values from the registry

The following script retrieves values for the default Transaction
object from the registry.

Setting values in the registry

The following script stores the values for the Transaction object in
the registry:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x