Going from one application to another

Going from one application to another

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.

You can start the other PowerBuilder application using the run commandand add parameters to the command line.

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

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

See also  How IoT Tech Will Transform Logistics

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist