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

Home » Public Forums » archive » Why does IDL jump to first line of code?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Why does IDL jump to first line of code? [message #90983] Wed, 20 May 2015 09:39 Go to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Hey!

As the topic implies I have a problem with an IDL code where it jumps to the first executable line.

At first the user enters a number -> numbers1
Then the user enters another number -> numbers2

Then both variables are used to search for data sets
The data sets are named as follows:

'ABC'+numbers1+numbers2+'*'

All in all the search algorithm works quite well and is executed in a FOR loop. Unfortunately the loop does not stop properly....instead it jumps to the first lines, where the user then (again) should enter values for numbers1 and numbers2

I'd appreciate your help with this one!

Thanks!
Re: Why does IDL jump to first line of code? [message #90984 is a reply to message #90983] Wed, 20 May 2015 09:48 Go to previous messageGo to next message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> Unfortunately the loop does not stop properly....instead it jumps to the first lines, where the user then (again) should enter values for numbers1 and numbers2


The problem is probably that your for loop's end condition is off by one. If you post the code segment, we could provide more help.
Re: Why does IDL jump to first line of code? [message #90985 is a reply to message #90984] Wed, 20 May 2015 11:38 Go to previous message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Mittwoch, 20. Mai 2015 18:48:13 UTC+2 schrieb Matthew Argall:
>> Unfortunately the loop does not stop properly....instead it jumps to the first lines, where the user then (again) should enter values for numbers1 and numbers2
>
>
> The problem is probably that your for loop's end condition is off by one. If you post the code segment, we could provide more help.

Hey, thanks!

I will post the code tomorrow!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to include a scale bar (distance bar) on the Google Map Plot?
Next Topic: clip polyhedron mesh

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

Current Time: Wed Oct 08 07:23:58 PDT 2025

Total time taken to generate the page: 0.00388 seconds