Title: "break" statement in AFL
Hi,
I’m trying to maximize the speed of a text lookup that involves a “While” loop (code sample below). The traditional way of breaking out of a “While” loop is to use a “break” statement (or something similar).
I can’t find anything similar to a “break” statement in AFL. Did I miss it? Any workarounds?
Thanks and regards,
Dan.
p.s., Yes, I know that reading from a file won’t be super-fast. If I can prove my concept and see a performance hit, I’ll try the Osaka plugin or something similar.
fh = fopen( "C:\\Program Files\\AmiBroker\\LookupData\\" + Symbol + ".csv ", "r");
if( fh )
{
while( ! feof( fh ) )
{
CurRow = fgets( fh );
if (StrExtract(CurRow, 0) == "YHEDDate")
sDateString = StrExtract(CurRow, 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
|