Regardless if using Python or Java, I can easily do SFIToolkit.ExecuteCommand("di 1+1",0) or SFIToolkit.stata("di 1+1",0) and either one works perfectly.
But how would that work with multiline inputs? I've tried various combinations, i.e.:
doesn't work:
doesn't work:
I've tried variations around that, but I couldn't find a way to execute multilines commands with either the Java or Python sdk, maybe the method isn't documented, please help; thank you.
J.
But how would that work with multiline inputs? I've tried various combinations, i.e.:
doesn't work:
Code:
SFIToolkit.stata("forvalues i=1/100 {",0); SFIToolkit.stata("di 1+1",0); SFIToolkit.stata("}",0);
Code:
SFIToolkit.stata("forvalues i=1/100 {\ndi 1+1\n}",0);
J.
Comment