Normal Topic Link to a file on disk? (Read 723 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Link to a file on disk?
Mar 16th, 2007 at 8:01pm
Print Post Print Post  
I'm a bit lost in the manuals, looking for something that I believe exists but I don't know how to phrase it for effective contents/index searching.  Basically, my boss would like to be able to open a record about one of our cranes and click on a link (stored in the record) that will fire off a .jpg image of a scan of the crane capacity sheet.  We don't want to actually store the image in the record, but instead press a command button or something that will open the file stored on disk in the native image viewer which will display the image.  Can someone point me towards a command or page number that will set me along this path?  Thanks in advance.
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Link to a file on disk?
Reply #1 - Mar 16th, 2007 at 8:10pm
Print Post Print Post  
@AsynchShell() page 150 of the Sesame 1.1 Programming Guide.

Syntax would be roughly

Code
Select All
Var vReturn as Int

vReturn = @AsynchShell(ElementName)
//ElementName is the name of the Element that contains the path to the file and the filename 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Link to a file on disk?
Reply #2 - Mar 16th, 2007 at 8:29pm
Print Post Print Post  
Thanks, that's it.  Question: will FileExists() work to check the existence of a .jpg file before I hand the filename off to @AsynchShell?  The section of the book which details FileExists() (Text File I/O Commands) mentions that those commands only work with ASCII files, but the existence of a file seems pretty straightforward, and the command doesn't really work with its contents, so I wonder.

Can't hurt to experiment, I suppose..... Wink
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Link to a file on disk?
Reply #3 - Mar 16th, 2007 at 8:33pm
Print Post Print Post  
That comment should not be so general. It applies to the File I/O commands that actually read and write files. FileExists() can check for the existence of any kind of file.
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Link to a file on disk?
Reply #4 - Mar 16th, 2007 at 8:43pm
Print Post Print Post  
YAY!  Works great, thanks!
  

**
Captain Infinity
Back to top
IP Logged