[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: How to get the AB Drive letter from afl?


  • Date: Sat, 21 Nov 2009 04:04:40 -0500
  • From: Herman <psytek@xxxxxxxx>
  • Subject: Re: [amibroker] Re: How to get the AB Drive letter from afl?

PureBytes Links

Trading Reference Links



Thank you Mike, I'll try that!

Gets rid of one more ParamList() :-)

herman

Mike wrote:

It's a hack. But, assuming that your database is on the same drive as your AmiBroker installation, it will do the job ;)

Mike

function getDriveLetter() {
   AB =
CreateObject("Broker.Application"
);
   Path = AB.DatabasePath;
   Index =
StrFind(Path, ":"
);

   
if (Index > 0
) {
      Drive =
StrLeft(Path, 1
);
   }
else
{
      Drive =
""
;
   }

   
return
Drive;
}

_TRACE("Drive letter: "
+ getDriveLetter());

Buy = Sell = 0;



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___