The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Problem with MOCA example WORKSHEET
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

marko

Germany
112 Posts

Posted - 07/08/2002 :  04:22:40 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I repost my former origin article to the labtalk forum, since this might be the more appropriate location for it.


[WorksheetTest]{
dll -a worksheet ATI\MOCA\worksheet\Debug\worksheet;
worksheet.WksName$=data1;
worksheet.WksName$=;
dll -r worksheet;}


This script is executed up to the end, BUT the output looks like this:

WORKSHEET.WKSNAME$=--

although there was the assignment to the property just the line before!

Any idea what this might be?
Marko

CStorey

Canada
137 Posts

Posted - 07/08/2002 :  11:17:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You might want to try the following. Add the %Y (Origin Path) to the dll call, otherwise I'm not sure you are actually finding the dll.

Also the "type" will display errors in the ScriptWindow if you run your test with it open.


[WorksheetTest]

type.redirection=1; //// Show errors in script window!

dll -a worksheet %YATI\MOCA\worksheet\Debug\worksheet; //// ****
worksheet.WksName$=data1;
%A=worksheet.WksName$; %A=;
dll -r worksheet;
Return;

Hope this helps,

Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring

Edited by - CStorey on 07/08/2002 11:18:26
Go to Top of Page

marko

Germany
112 Posts

Posted - 07/15/2002 :  07:18:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi CStorey,

the path wasn't a problem. Origin starts to search in it's install directory!

But, you are right, the direct output doesn't work. So one has to work around by using the temporary variable %A in your case.

Found this in one of my older scripts also after I got response in the main forum to this topic.

Thanks anyway!
Marko

Go to Top of Page

eparent

118 Posts

Posted - 07/15/2002 :  09:31:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This topic was answered in the Origin forum. See the post titled "MOCA example WORKSHEET doesn't work". Please post a question in one forum only and please post all future MOCA questions here in the LabTalk forum.

Thank you.




Edited by - eparent on 07/15/2002 09:56:39
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000