Now that I look at this closer, it looks like I can't bring up RBEdit from 
within an RBase form anyway the way I have it.  If anyone can think of a way to 
do what I want, is there a way to launch NotePad or WordPad with a parameter to 
send in the file to open?

Karen

 

 

 

-----Original Message-----
From: Karen Tellef <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Wed, Nov 20, 2013 1:02 pm
Subject: [RBASE-L] - Doing a dynamic "launch"



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