× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



PGM
DCL VAR(&URL) TYPE(*CHAR) LEN(108) +
VALUE('WWW.GOOGLE.COM')
DCL VAR(&PCCMD) TYPE(*CHAR) LEN(123)

MONMSG MSGID(CPF0000 MCH0000)

STRPCO
MONMSG MSGID(IWS4010)

CHGVAR VAR(&PCCMD) VALUE('start http:"//' *TCAT &URL
*TCAT '"')
STRPCCMD PCCMD(&PCCMD) PAUSE(*NO)
ENDPGM




From:
"Robert Ostrowski" <Bob.Ostrowski@xxxxxxxxxxxxxxxx>
To:
<midrange-L@xxxxxxxxxxxx>
Date:
08/27/2009 08:42 AM
Subject:
STRPCCMD command to open a URL from Client Access Session
Sent by:
midrange-l-bounces@xxxxxxxxxxxx



Can anybody tell me why I can't get this to work using a variable for
the URL? Instead of going to the web site in the &URL variable,
the browser opens up to whatever the home page is set to. If I hard
code the HTTP://...... It will work.

DCL VAR(&URL) TYPE(*CHAR) LEN(60)

MONMSG IWS4010
CHGVAR VAR(&URL) VALUE('HTTP://WWW.GOOGLE.COM')
STRPCO PCTA(*NO)

STRPCCMD PCCMD('"C:\Program Files\Internet Explorer\IEXPLORE.EXE" +
&URL')









Bob Ostrowski | Senior Programmer/Analyst
TRAINOR GLASS COMPANY | National - IT
11901 S. Austin Ave. | Alsip, IL 60803
T 708.293.4218 | F 708.293.6218
bob.ostrowski@xxxxxxxxxxxxxxxx
<mailto:firstname.lastname@xxxxxxxxxxxxxxxx> | www.trainorglass.com
<http://www.trainorglass.com>

Project Management On-Line <http://webapps.trainorglass.com/> | View
your project's progress and communicate with your project manager


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.