Question regarding execstr use

paul.carrico at free.fr paul.carrico at free.fr
Fri Nov 5 11:19:30 CET 2010


All,

Can somebody tell me why the use of execstr leads to an error (?!?!?) ... I had a look on the help documenttation but ????

Thanks for any advice

Paul


// OK
for i = 1 : 5
    printf("Hello world %d\n",i)
end


// error
h = 5;

execstr("for i = 1 : " + string(h))
    execstr("printf(''Hello world %d\n'',i)")
execstr("end")

Nota : of course execstr are not necessary in the 2 last lines ... last attempts !  



More information about the users mailing list