T O P I C R E V I E W |
kanderlee |
Posted - 10/08/2007 : 10:50:08 PM Origin Version: 7.5 SR4 Operating System:XP SP2

Hi, everybody,
If I want to get dada for the exist curve by using data reader and aslo put the the number which I got into a worksheet, what code can achieve these functions?
Kander Lee |
6 L A T E S T R E P L I E S (Newest First) |
kanderlee |
Posted - 10/25/2007 : 12:58:53 AM Heyhey...
Finally, I've successed to run the script after your guide. Thank you.
Kander Lee |
Mike Buess |
Posted - 10/09/2007 : 09:04:23 AM quote: I've put those code above in the script window and code builder, but both of them didn't work. Could you tell me what could cause this problem?
The hello macro works fine for me, except for the fact that it contains special characters. Are you aware that when executing multiple-line code from the script window you must select all lines and press Enter as described in my first link above?
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 10/09/2007 09:06:16 AM |
kanderlee |
Posted - 10/09/2007 : 05:32:06 AM def autoexec { window -T Data Origin; };
I put the code into script window, and it worked fine.
def hello {
loop (ii, 1, 3)
{ type ˇ§$(ii). Hello Worldˇ¨; };
};
I've put those code above in the script window and code builder, but both of them didn't work. Could you tell me what could cause this problem? |
Mike Buess |
Posted - 10/09/2007 : 04:09:51 AM Macros are LabTalk scripts which can be executed from the script window or an OGS file.
http://www.originlab.com/www/support/resultstech.aspx?ID=1056&language=English&Version=7.5
http://www.originlab.com/index.aspx?s=9&pid=366
quote: tried to put a macro in the script window, but nothing happened!
GetPts can be tricky. See this article...
http://www.originlab.com/index.aspx?s=9&pid=541
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 10/09/2007 04:13:01 AM |
kanderlee |
Posted - 10/09/2007 : 03:55:01 AM Hi, Mike,
I've seen the help file after your advice, but I don't know where to put "macro" to excute. Are macros excuted in the code builder? or in Script wiodow? I've tried to put a macro in the code builder, but it didn't work! I've also the help file about macro, and tried to put a macro in the script window, but nothing happened!
Kander Lee |
Mike Buess |
Posted - 10/08/2007 : 11:12:41 PM Look for DoToolbox command and GetPts command in the index of your programming guide.
Mike Buess Origin WebRing Member |