Advertisement

04.24.2008 at 05:42PM PDT, ID: 23352369
[x]
Attachment Details

passing arguments from PowerBuilder to another Executable file (OLE Object)

Asked by dmazzini in PowerBuilder Programming Language

Tags: SYBASE, PowerBuilder, PB11

Hi guys

I want to be able to run an executable file with arguments from PB application.

I am doing on this way.(Command buton ok script)

CODE

all_actions = "C:\Documents and Settings\dmazzini\Desktop\POWER-BUILDER-V11-WORK-SPACE\PB PROGRAMS\GUIPB\receiving_arg_from_pb.exe" + '  ' +  string( flag_dcn)  + '| ' + string(flag_coco) + '|' + string(action) + '|' + string( option)+  '|' +string(dropdown_value)  + '|' +string( dropdown_country) + '|' + string( trs_xlsfile)

run (all_actions)
Code above works perfect.

Now I would like to insert this executable file (receiving_arg_from_pb.exe) within the PB.exe application.
So, instead call an executable file located in one directory, I want to have it built into the PB exe file.

Somthing like an OLE.

So, using ole_1.Activate() function, works, it triggers executable file, but I dont know how to activate an OLE passing arguments to it.

Any ideas?
Start Free Trial
 
Loading Advertisement...
 
[+][-]04.25.2008 at 08:53AM PDT, ID: 21440759

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PowerBuilder Programming Language
Tags: SYBASE, PowerBuilder, PB11
Sign Up Now!
Solution Provided By: sandeep_patel
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628