Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web link 2

Status
Not open for further replies.

alvinmcg

Technical User
Oct 21, 2003
24
US
I have a form with a rudimentary link to data on the web.

execute( "start )

This works fine on my machine but does not execute on the others using the form.

They get the error message:

Error occurred while trying to execute the specified program..

I created this as a first attempt to link to data stored on the web. The user then enters the required number to access the information.

Again, the command works fine on my machine (Win98) but will not work on two others (WinXP).
 
alvinmcg,

Executing the user's web browser can be a frustrating task, especially given the various ways that MS has tried to strengthen the security of Windows, IE, and Outlook.

If, like me, you've configured IE to prevent some of the abuses that certain websites engage in (e.g. IFRAME hacks, JS redirects, and so on), you may find that you can't use
Code:
start
to open URL's from the command-line (which is, essentially, what
Code:
start
does).

You'll probably need to use a different technique to reliably open your users' web browsers. For a list of possibilities, check out which demonstrates a few different ways you can do this. Hopefully, one of them will work more reliably for your needs.

Hope this helps...

-- Lance
 
Hi Alvinmcg,

Have you tried
startwebbrowser("
I tried it on a pushbutton and it worked.

To save hard coding the address you could also try putting this on the mouseclick of a text box or a field

Var
Web string
EndVar

Web = self.value
Startwebbrowser(Web)

My understanding is startwebbrowser launches the default viewing application. So would launch the internet browser for a web address or Word for a word document

Would be interested to learn how you fare.

Regards

Bystander
 
Thank you Bystander. I tried your fix but got an error message when checking the syntex. ERROR: UNKNOWN METHOD NAME

We are using Version 8, if that helps.

Code:
*********************
Var
Web string
EndVar

Web = self.value
Startwebbrowser(Web)
*********************

Thank you for your advice.

Alvin
 
Alvin,

StartWebBrowser was added in Paradox 9. You'll need to choose a different technique. Sorry.

-- Lance
 
Alvin,

Sorry about that. I sort of only flirted with version 8 in between 7 and 9. Thank you for the star.

Regards

Bystander

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top