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 initialization files – PB Docs 100 – PowerBuilder Library

Managing information in initialization files – PB Docs 100

Managing information in initialization files

Functions for accessing
initialization files

PowerBuilder provides several functions you can use to manage
application settings in initialization files.

Table 38-1: PowerBuilder initialization file functions
Function Description
ProfileInt Obtains the integer value of a setting
in a profile file
ProfileString Obtains the string value of a setting
in a profile file
SetProfileString Writes a value in a profile file

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

For how to use the ProfileString functions
with the registry, see “Functions for accessing
initialization files”
.

The format of APP.INI

The examples below manage application information in a profile
file called APP.INI. This file keeps track
of user preferences that control the appearance of the application.
It has a Preferences section that stores four color settings:

Reading values

The following
script retrieves color settings from the APP.INI file:

Setting values

The following
script stores color settings in the APP.INI file:


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