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

RE: [amibroker] "break" statement in AFL



PureBytes Links

Trading Reference Links

Title: "break" statement in AFL

Steve,

 

Ah.  This works!  Many thanks to you and to William.

 

Regards,

 

Dan.

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Steve Dugas
Sent: Friday, December 23, 2005 7:17 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] "break" statement in AFL

 

Hi Dan - how about something like this?

 

fh = fopen( "C:\\Program Files\\AmiBroker\\LookupData\\" + Symbol + ".csv ", "r");

StringFound = 0;

if( fh )

        {

        while( ! feof( fh ) AND NOT StringFound )

                {

                CurRow = fgets( fh );

                if (StrExtract(CurRow, 0) == "YHEDDate")

        {

                        sDateString = StrExtract(CurRow, 1);

                        StringFound = 1;

                }

   }

        fclose( fh );

}




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS