[futurebasic] Re: [FB] The Application's WDN

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

From: Robert Purves <robert.purves@...>
Date: Fri, 29 Dec 2000 01:02:05 +1300
>Now the obvious question (FAQ?).  How best to get the
>WDN of the app's folder under the mini-runtime of FB2
>(and equally under the tech runtime of FB^3)??

FN DefaultWD works in FB^3 and FBII. It returns the same value as
system( _aplVol ) at startup:


local fn DefaultWD
dim volParamBlock.64
dim err
volParamBlock.ioNamePtr& = 0
err = fn GetVol( @volParamBlock )
end fn = volParamBlock.ioVRefNum%

' demo in full runtime
window 1
print fn DefaultWD, system( _aplVol )
do
handleevents
until fn button



Robert P.