Normal Topic Accessing a webpage from a Sesame database (Read 585 times)
esgage
Junior Member
**
Offline


No personal text

Posts: 55
Joined: Dec 8th, 2005
Accessing a webpage from a Sesame database
Apr 12th, 2011 at 12:28pm
Print Post Print Post  
Hello:

I am sure there must be a way to do this. I am looking to add a command button to one of my forms. If the user hits the button, I would like Sesame to open up the external browser with a specific website as indicated in the programming for this command button. Is there an easy way to do this?

Thanks,
Kevin
E & S Gage
  
Back to top
 
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: Accessing a webpage from a Sesame database
Reply #1 - Apr 12th, 2011 at 2:00pm
Print Post Print Post  
Hello Kevin,

The command you are looking for is @AsynchShell.  @AsynchShell is a command that allows you to open a file or application by passing in a file path. This command can be used to open a browser, load a document in a word processor or as part of a larger routine.

Programming Examples:

Code
Select All
View_Website :: On Element Entry

// This example gets the web address from an element named Website
var vBrowseWeb as Int
     vBrowseWeb = @AsynchShell(Website)

// This example uses a hardcoded webaddress
var vBrowseWeb as Int
     vBrowseWeb = @AsynchShell("http://www.lantica.com")
 

  
Back to top
IP Logged
 
Rick_R
Full Member
***
Offline



Posts: 243
Joined: Jan 29th, 2010
Re: Accessing a webpage from a Sesame database
Reply #2 - Apr 12th, 2011 at 5:38pm
Print Post Print Post  
Kevin,

See the topic thread "Passing @Asynchshell both application and data" in these discussions.  There are some differences in which command to use, depending on exactly what you want to do.  For instance, @ASynchShell will automatically pull up the default browser, which might not be MSIE.
  
Back to top
 
IP Logged