comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: loop limit ???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: loop limit ??? [message #53583 is a reply to message #53582] Wed, 18 April 2007 14:02 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Wed, 18 Apr 2007, kostis wrote:

> i wouldnt expect that IDL has a limit for loops !!
> trying a loop of 50.000 steps i got the message:
>
> % Compiled module: TRAJECTORY.
> % Loop limit expression too large for loop variable type.
> <LONG ( 49999)>.
> % Execution halted at: TRAJECTORY 16 /home/kostis/PROJECT
> LARMOR/dipole/trajectory.pro
> % $MAIN$
>
> Why is this?
> This means i cant have bigger loops... or is there a trick??
>

IDL> for i=0,49999 do begin & endfor
% Loop limit expression too large for loop variable type.
<LONG ( 49999)>.
% Execution halted at: $MAIN$


0 is of type INT (default integer), whose max. value is 32767.
Use 0l (LONG) instead.

regards,
lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help with the F-test. mpftest.pro in particular.
Next Topic: Re: Annoying ROIs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 20:26:24 PST 2025

Total time taken to generate the page: 0.23719 seconds