Author |
Topic  |
|
kanderlee
Taiwan
Posts |
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 |
|
Mike Buess
USA
3037 Posts |
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 |
 |
|
kanderlee
Taiwan
Posts |
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
USA
3037 Posts |
|
kanderlee
Taiwan
Posts |
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
USA
3037 Posts |
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
Taiwan
Posts |
Posted - 10/25/2007 : 12:58:53 AM
|
Heyhey...
Finally, I've successed to run the script after your guide. Thank you.
Kander Lee |
 |
|
|
Topic  |
|