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

Home » Public Forums » archive » IDL is giving me a syntax error out of nowhere
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
IDL is giving me a syntax error out of nowhere [message #62551] Mon, 15 September 2008 12:08
Ryan. is currently offline  Ryan.
Messages: 77
Registered: March 2006
Member
Hi,

IDL is giving me problems with syntax that should not be a problem. I
have a procedure GETOCCID that when it is given a Long Integer it goes
out and does some searching in databases and comes back and spews out
what I want. That routine is fine, but the problem lies in the call to
this program. Here is what happens:

IDL> getoccid, 1228694696.289
No Results Found
No Results Found
The occultation with ID 1.22869e+09 is:
-999


IDL> getoccid, 1228694696.289L

getoccid, 1228694696.289L
^
% Syntax error.



IDL> getoccid, long(1228694696.289)
No Results Found
No Results Found
No Results Found
The occultation with ID 1228694656 is:
-999



IDL> getoccid, 1228694696.289UL

getoccid, 1228694696.289UL
^
% Syntax error.


I know what is wrong with the first command, but the last 3 should not
have any problems, especially syntax problems. If you see the third
call to the procedure (with the long(...) argument), the display at the
end of the routine has the wrong number so it is not taking in the
correct value for the argument. I used this routine last year and it
was working fine, but I can't remember the trick to get it to work.

Any insights into this problem would be greatly appreciated,
Ryan.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Scientific Notation
Next Topic: Returning a struct containing variable-length arrays

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

Current Time: Fri Oct 10 05:58:54 PDT 2025

Total time taken to generate the page: 0.00774 seconds