T O P I C R E V I E W |
andreas1 |
Posted - 03/19/2002 : 07:58:23 AM Hi,
suddenly the script window started echoing all executed commands. For example when closing a project it echoes all Origin labtalk commands executed. Or when I execute a script using run.section it echoes all executed script lines.
Any ideas how to turn that off (and on again in case I ever want to see what origin does) ?
Thanks,
Andreas
|
3 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 03/20/2002 : 12:50:07 PM Hi Andreas,
I'd start by opening the script files that are in use when this happens in a text editor and searching for the word "echo". (CodeBuilder works great for searching if you have Origin 7.0.) Perhaps you used the word in a comment and the comment identifer was removed by mistake. Or maybe you used echo as a variable name.
If nothing surfaces along that line I'd look closely for labtalk command statements that don't end with a semicolon. Missing semicolons can often produce unpredictable results.
If the reason is still not apparent and you're scripts are relatively short, you can post or provide a link to them here and maybe one of us will spot the problem.
Mike Buess Origin WebRing Member |
andreas1 |
Posted - 03/20/2002 : 09:58:34 AM Thanks for the hint. Unfortunately typing echo=0 in the script window does not help.
The echoing just starts at some point in time by itself (without me knowingly telling it to do so) and then does not want to go away.
Any further ideas ?
Thanks,
Andreas
|
H.Steen |
Posted - 03/19/2002 : 08:58:44 AM The system variable ECHO controls this. From the Origin help system (ver 6.1) I have copied the following text (searched index using 'echo') :
"You can change the value of the echo variable to instruct Origin to echo different types of scripts to the Script window. For example, you can set echo=1 to show any script that generates an error, or set echo=7 to display all scripts that are executed. During normal operation, echo=0."
To change the echo variable open the script window and and just type
Echo=7 (enter)
((enter) means press the enter-key) and the value is set, or you can change it during a script so you can see only the part of the code you like.
Helge
Edited by - H.Steen on 03/19/2002 09:04:15
Edited by - H.Steen on 03/19/2002 09:04:48 |