I'd like to put up the file-finder windows box for the user to choose a file 
and then do a Launch. 

Problem is, they have alot of files with weird extensions like ".vrw" or ".123" 
that are not associated with Windows program but can be brought up in any text 
editor.  If they pick one of these files and try to launch it you get the 
system message "there is no applicaton associated with the file extension".

I was hoping I could trap this error with an error variable or with SQLCODE <> 
0 and then bring up RBEdit, something like the below code, but it doesn't see 
this as an error message.   (Note:  I want to use launch because there can be 
Word or Excel or PDF files there too)

Any suggestions?

Karen

SET VAR vFilename TEXT = NULL
PLUGINS loadfilenameplus.rbl 'vFilename|fullpath on +
    |TITLE Select file to display or type it in +
    |VIEW_MODE Details |FILTER All Files (*.*)#*.* 

LAUNCH .vFilename
IF SQLCODE <> 0 THEN   (or I tried if xError <> 0)
    RBEDIT .vFilename
ENDIF    


Reply via email to