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

Reading values from an external file – PB Docs 150 – PowerBuilder Library

Reading values from an external file – PB Docs 150

Reading values from an external file

Using external files

Often you want to set the Transaction object values from an
external file. For example, you might want to retrieve values from
your PowerBuilder initialization file when you are developing the
application or from an application-specific initialization file
when you distribute the application.

ProfileString function

You can use the PowerScript ProfileString function to retrieve
values from a text file that is structured into sections containing
variable assignments, like a Windows INI file.
The PowerBuilder initialization file is such a file, consisting of
several sections including PB, Application,
and Database:

The ProfileString function has this syntax:

Example

This script reads values from an initialization file to set
the Transaction object to connect to a database. Conditional code
sets the variable startupfile to the appropriate
value for each platform:


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