Prowin32 return code

Luc,

I've had the need to do the same thing, but since I havent found any way to
return values from progress, I have had to resort to using a temporary file
on disk to return values to visual basic.

Thaddeus

-----Original Message-----
From: Luc Morin [mailto:luc_mo@...]
Sent: Monday, January 21, 2002 9:36 AM
To: 'vantage@yahoogroups.com'
Subject: [Vantage] Prowin32 return code


Hi all,

I'm currently writing VB code that calls Prowin32 to execute some 4GL code.

I'd like to be able to return an exit code from my progress code. At this
point, I can execute and get return code for any executable from VB, so I'm
only missing the prowin32/progress bit.

Looking at the progress docs, I haven't been able to find relevant
information, so if anyone can push in the right direction... :-)

Many thanks,


Luc Morin
Electrical Designer
Wulftec International
lucm@...
(819) 838-4232, ext. 232






[Non-text portions of this message have been removed]



Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Hi all,

I'm currently writing VB code that calls Prowin32 to execute some 4GL code.

I'd like to be able to return an exit code from my progress code. At this
point, I can execute and get return code for any executable from VB, so I'm
only missing the prowin32/progress bit.

Looking at the progress docs, I haven't been able to find relevant
information, so if anyone can push in the right direction... :-)

Many thanks,


Luc Morin
Electrical Designer
Wulftec International
lucm@...
(819) 838-4232, ext. 232






[Non-text portions of this message have been removed]
The RETURN statement can return a value to the calling routine in
Progress but not to Visual Basic. It could be done with Windows API
routines but here are some simpler methods:

1. Have the Progress program write out the information to a file for
VB to read.

2. Use the clipboard if no other program and user is using it at the
same time:

Progress: clipboard:value = returnvalue.
VB: returnvalue = clipboard.gettext

3. Break up your VB code into two pieces:

vbcode1: shell "prowin32.exe -p pcode.p"
pcode.p: dos silent value("vbcode2.exe " + returnvalue).
vbcode2: returnvalue = command$

Chris Robisch
425-788-2489
--- In vantage@y..., Luc Morin <luc_mo@h...> wrote:
> Hi all,
>
> I'm currently writing VB code that calls Prowin32 to execute some
4GL code.
>
> I'd like to be able to return an exit code from my progress code.
At this
> point, I can execute and get return code for any executable from
VB, so I'm
> only missing the prowin32/progress bit.
>
> Looking at the progress docs, I haven't been able to find relevant
> information, so if anyone can push in the right direction... :-)
>
> Many thanks,
>
>
> Luc Morin
> Electrical Designer
> Wulftec International
> lucm@w...
> (819) 838-4232, ext. 232
>
>
>
>
>
>
> [Non-text portions of this message have been removed]