Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
May 29, 1997

Going from one application to another

Question:
I am trying to figure out how to pass through the Message Object or NVO address, either by reference or value, to another application entirely different from the original pbl that was first instantiated. I want to do this so my user can bring up a second application using one or many parameters and open another application. I cannot use OLE or DDE because of:

  1. not coming from a Microsoft object, and
  2. the overhead of a DDE.

Please advise. We are now using PB 4.0 but are migrating to 5.0.

Answer:
You can start the other PowerBuilder application using the run command and add parameters to the command line.

In your second application you can use the CommandParm() command to read the arguments passed to you. You can then parse them and call the correct part of your application.

Another alternative is to write the information to a database table with a session style setup in which the key is a long. Then you can pass the session key to the other application either via command parm or by using the Send() command, passing the long to a custom event in the second application. This is essentially how Web applications work.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date