Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-09-07
3
Medium Priority
?
922 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Assisted Solution

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

Accepted Solution

by:
sandeep_patel earned 400 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

715 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