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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Problem with MOCA example WORKSHEET

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
marko Posted - 07/08/2002 : 04:22:40 AM
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

3   L A T E S T    R E P L I E S    (Newest First)
eparent Posted - 07/15/2002 : 09:31:30 AM
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
marko Posted - 07/15/2002 : 07:18:52 AM
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

CStorey Posted - 07/08/2002 : 11:17:45 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000