Normal Topic Command Button to Open Web-Site (Read 443 times)
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Command Button to Open Web-Site
Oct 2nd, 2005 at 3:55pm
Print Post Print Post  
Hi -

I have a command button to open my e-mail program with the correct e-mail address in the "To" Block.

I thought, therefore, that I could use the programming as a "model" to start Internet Explorer and go to the web page specified in my Web Page field.  I am, however, having trouble with it and would appreciate some help.

I checked the programming guide for both @shell and @Asynchshell but could not "figger it out."  So, naturally, I am asking for help.

I am using Microsoft Internet Explorer, version 6.0.

Thanks!

P.S.  While I was waiting for a response, I decided to continue "playing" with this, since I felt it was something I should be able to do.

Here's what I did --- that worked!

Code
Select All
var IEFAILURE AS Int
var vRecipient as String

If not @isblank(Web Page) then


{
vRecipient = Web Page

IEfailure = @asynchshell("http://" + Web Page)

}

 



Thanks, anyhow.   Grin
« Last Edit: Oct 2nd, 2005 at 5:23pm by SpencerWulwick »  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Command Button to Open Web-Site
Reply #1 - Oct 3rd, 2005 at 12:10pm
Print Post Print Post  
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Command Button to Open Web-Site
Reply #2 - Oct 3rd, 2005 at 1:46pm
Print Post Print Post  
Erika -

Thanks for the reference to the previous discussion on linking.  Additional ideas are always welcome.

By the way, when I first programmed it, I did include an "alert" about "couldn't open web browser"  ... but I decided I didn't need it.   If it doesn't work, it simply won't take me to the web-site. 

First of all, I must have tested it on at least 200 web-pages yesterday and it worked without incident.  If the web-page itself is wrong, then I get the "web-page not found" message from the browser itself. 

I had built in the "failure" alert on using dial-up to dial phone numbers and the only time I got the message (with that awful bloop sound), the dialer worked in spite of that.  lol

Also, instead of using @message I started using sound bytes to state the failure and whenever, possible, the reason.

Once again, thanks for steering me to the additional info. 


  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged