PureBytes Links
Trading Reference Links
|
Hello,
Please go to the Tools->Preferences, "AFL" tab.
There is a "endless loop detection threshold" that defines how many
iterations is considered "endless loop". If you file has more lines than that,
this is the reason- in such case - increase this limit.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message
----- Original Message -----
From: "rhoemke" <robert@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, August 06, 2007 5:38 PM
Subject: [amibroker] Re: Replace Tabs with StrReplace?
> Hello,
>
> i thought \s must be space if \t is tab :)
>
> As to the rest, i still get the error message :(
>
> I already restarted AB, but still the same.
>
> Send you a screenshot via support.
>
> Regards
> Robert
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> wrote:
>>
>> Hello,
>>
>> What is "\s" ? It is not valid escape sequence.
>>
>> As to the rest - you are using fgets twice (skipping every 2 rows).
>> Should be:
>>
>> Sourcefile = ParamStr("SourceFile", "C:\\BZ U7-DT_0.txt");
>> Sourcefileread = fopen(Sourcefile,"r");
>> row = 0;
>>
>> if(Sourcefileread)
>> {
>> while(!feof(Sourcefileread))
>> {
>> line = fgets( sourcefileread );
>> line = StrReplace( line,",",".");
>> line = StrReplace( line, " ", "," );
>> VarSetText("Line_"+row, line );
>> row++;
>> }
>> fclose(Sourcefileread);
>> }
>>
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>> ----- Original Message -----
>> From: "rhoemke" <robert@xxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Monday, August 06, 2007 4:40 PM
>> Subject: [amibroker] Re: Replace Tabs with StrReplace?
>>
>>
>> > There is still a mystery (for me).
>> > Why doesn't it work?
>> > I get the error Message
>> > Ln:14, Col: 6: Error 13, Endless loop detected in WHILE loop
>> > and i don't know why.
>> >
>> > My code is this:
>> >
>> > Sourcefile = ParamStr("SourceFile", "C:\\BZ U7-DT_0.txt");
>> > Sourcefileread = fopen(Sourcefile,"r");
>> > row = 0;
>> >
>> > if(Sourcefileread)
>> > {
>> > while(!feof(Sourcefileread))
>> > {
>> > VarSetText("Line_"+row,StrReplace(fgets(Sourcefileread),",","."));
>> > VarSetText("Line_"+row,StrReplace(fgets(Sourcefileread),"\s",","));
>> > row++;
>> > }
>> > fclose(Sourcefileread);
>> > }
>> >
>> >
>> > --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@> wrote:
>> >>
>> >> StrReplace("\t", "s");
>> >>
>> >> Best regards,
>> >> Tomasz Janeczko
>> >> amibroker.com
>> >> ----- Original Message -----
>> >> From: "rhoemke" <robert@>
>> >> To: <amibroker@xxxxxxxxxxxxxxx>
>> >> Sent: Monday, August 06, 2007 3:59 PM
>> >> Subject: [amibroker] Replace Tabs with StrReplace?
>> >>
>> >>
>> >> > Hello,
>> >> >
>> >> > how can i replace tabs with StrReplace?
>> >> > It seems, that tabs and spaces are not recognized.
>> >> >
>> >> > Regards
>> >> > Robert
>> >> >
>> >> >
>> >> >
>> >> > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>> >> > http://www.amibroker.com/devlog/
>> >> >
>> >> > For other support material please check also:
>> >> > http://www.amibroker.com/support.html
>> >> >
>> >> > Yahoo! Groups Links
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> >
>> > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>> > http://www.amibroker.com/devlog/
>> >
>> > For other support material please check also:
>> > http://www.amibroker.com/support.html
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>> >
>> >
>>
>
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>
>
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|