Solved

I wish to set/Export an Environment Variable from within a Powerbuilder Application

Posted on 2010-09-07
3
880 Views
Last Modified: 2013-12-26
Hi,

I would be grateful for an example which illustrates how to export an environment variable from a Powerbuilder application, running on Windows XP.

Thanks

 
0
Comment
Question by:cintra
3 Comments
 
LVL 18

Assisted Solution

by:diasroshan
diasroshan earned 25 total points
ID: 33625076
0
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 100 total points
ID: 33629166
In a system there are two types of env variables..
1) User variables
2) System variables.

> All user variables are defined under below registry...
HKEY_CURRENT_USER\Environment
> All System variables are defined under below registry...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Then use RegistryValues, RegistryGet to get the values of those entries..

You can also use RegistrySet to set new environment variable in registry.

See PB help for more information these functions or let me know if you need more information.

Regards,
Sandeep


0
 

Author Comment

by:cintra
ID: 33634069
Thank you both for taking time to comment. I shall look at both solutions and allocate points shortly.
 
 
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now