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

Home » Public Forums » archive » Beginner fails miserabley at first hurdle 0.05 0.05
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
Beginner fails miserabley at first hurdle 0.05 0.05 [message #10932] Tue, 03 February 1998 00:00
clovis21 is currently offline  clovis21
Messages: 4
Registered: February 1998
Junior Member
Hello all, I'm just starting, but I've come unstuck already. I'm
trying to write a for .. do begin line, but I can't seem to get it to
work:


for i=0, 31 do $
for k=0, 31 do $
for j=0, 255 DO BEGIN
real_b(i, k, j)=b(i, k, 2*j)
imag_b(i, k, j)=b(i, k, (2*j)+1)
print, i, k, j
endfor

In desperation I've tried the following:

for i=1, 100 do begin
print, i
endfor

and all that happens is that I get 101 printed, then a syntax error on
the 'n' of endfor. What have I done wrong?

Martin

--

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: beta testing
Next Topic: vector plots on maps

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

Current Time: Thu Oct 09 12:01:29 PDT 2025

Total time taken to generate the page: 0.23706 seconds