[futurebasic] Re: [FB] [FB3] RUN "programname",?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1999 : Group Archive : Group : All Groups

From: Chris Stasny <staz@...>
Date: Thu, 9 Dec 1999 10:09:02 -0600
>AlStaff@... wrote:
>
>  > >How do I launch  a program from my program in FB^3?
>  > > For example There is my regular SystemViewer 2.0 and when someone clicks
>  > >on
>  > >"SystemViewer 2.0 Help..." in the Help Menubar I used to call up a FN but
>  > >now
>  > >I want to use a external application.
>  > >
>  > >I've tried RUN "SystemViewer Help",aplVol%)
>  >
>  > I've had trouble getting RUN to work sometimes too, but I don't 
>know if it's
>  > my bug or not. My problem has been that it doesn't work for certain
>  > applications that are in folders other than the one my app is in.
>
>There is no question but what the explanation of how to get the appropriate
>volRefNum is confusing. I've tried and tried before I get something 
>to work and
>then I'm still not certain why it is finally working. We really do need some
>"better", "clear", "more specific" directions. I'm referring, of 
>course, to the
>FOLDER FN in the Reference Manual. The Table "tries" to do this, but - as
>mentioned - has ALWAYS confused me and I think others too from what I've seen
>on this list over the past couple of months.
>
>We seem to be able to get the volRefNum that is the same as the "running" app.
>Also for the likes of the Reference Folder and the System Folder, but other
>"paths" that would determine some "other" volRefNum seem to be pretty elusive.
>This is one case where it would be real nice if someone would take the time to
>"hold our hands" with some really clear and concise examples. I may 
>be the only
>one who has faced this dilemma, but I think not. Does anyone have a clear
>"vision" of the magic that is necessary to "nail down" this mysterious value.
>
>TIA to whomsoever,
>
>Joe Wilkins


There are only two folders that you can depend on: the system folder 
and the application folder. Anything else has to be dealt with using 
alises. You can build a path from the application folder using a path 
name and a vref number that matches the app.

OPEN "R",#1,"folder1:folder2:file",1,SYSTEM(_aplVol)

or you can use the folder function...

vRef1 = FOLDER("folder1", SYSTEM(_aplVol))
vRef2 = FOLDER("folder2",vRef1)
OPEN "R",#1,"file",1, vRef2



Best,

-STAZ  ~)~

800.348.2623 Orders  http://www.stazsoftware.com
228.255.7086 FAX     mailto:staz@...