Hi vistec,
Hideo pointed out error above with custom.ogs being used instead of the test.ogs, and also no need to specify name of file if same file.
Also note that if you have sections in your ogs file, you cannot call them with run.file. You need to use run.section. Furthermore, you need to specify in run.section command to call [main]. The code under [main] is currently not called automatically unless specified.
So, for example, if your test.ogs file is as below:
type hi there!;
[Main]
type " Hallo";
run.section(,S2);
run.section(,S1);
type "Ende";
[S1]
type "S1";
return;
[S2]
type "S2";
return;
Then if you use the command:
run.file(R:\Project\Vorlagen\Labtalk_files\test.ogs)
you will get the output:
hi there!
If you use the command:
run.section(R:\Project\Vorlagen\Labtalk_files\test.ogs)
you will get the same output:
hi there!
But if you use the command:
run.section(R:\Project\Vorlagen\Labtalk_files\test.ogs, main)
you will get the output
Hallo
S2
S1
Ende
Easwar
OriginLab
Edited by - easwar on 03/23/2006 11:24:10 AM