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

Home » Public Forums » archive » newbie's question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
newbie's question [message #53407] Sat, 14 April 2007 08:36
geonline714 is currently offline  geonline714
Messages: 7
Registered: April 2007
Junior Member
Dear all,

I tried to run a script like this (stored in test.pro):

array = ['one', 'two', 'three']
print, array
n = N_ELEMENTS(array)
print, n
FOR i=0,n-1 DO BEGIN
PRINT, array[i]
ENDFOR


However, I got error message as follows:

IDL> @test
one two three
3
Attempt to subscript ARRAY with I is out of range.
Execution halted at: $MAIN$

ENDFOR
^
Syntax error.
At: E:\temp\test.pro, Line 7


This is an example from IDL. Do you have any idea about what is going
on?

Sincerely,
Qi
[Message index]
 
Read Message
Previous Topic: Re: Rotating 3D image
Next Topic: Newbie's question

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

Current Time: Fri Oct 10 09:38:42 PDT 2025

Total time taken to generate the page: 1.51851 seconds