Orion Poplawski - 2013-12-25

On 12/25/2013 02:19 AM, seany wrote:

Hello and Merry Xmas

I had this as a script file:

a = [1 , 2 , 3 , 4]
for i = 0,3 do begin
print, a[i]
endfor

if i save this with the name test. pro and run as gdl test.pro, it tells me that it encountered errors : unknown token FOR and unknwon token EnDFOR.

adding a pro test header and an end footer reports compilationnot possible, although i am not using the -e option, in single line mode.

the same script, frominside gdl, with .run test.pro works perfectly

what is wrong?

Use .run script in these case I believe.

--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com