[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

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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS