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
 %() substitution problem in Origin 7.5

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
evanm Posted - 09/08/2004 : 08:12:15 AM
Hello,

I just upgraded my Origin to version 7.5 only to find that my old programs that were written in version 7 do not work. This problem seems very simple, I have one line of lab talk that does not work. in Origin 7.0 if you enter the following in the script window you get the name of the first dataset plotted in the active graph layer...
%R = %(%H,@D);
%R=;
Data1_B
which is correct!

Now when I execute these 2 lines in version 7.5 I get:
%R = %(%H,@D);
%R=;
% (%H,@D)

Can anyone please explain why this no longer works and how I can fix it?

I want the name of the first dataset plotted in the first layer of a graph. In origin 7.5 this is conveniently possible using Origin C:
string dsYName = graph.Layers(0).DataPlots(0).GetDatasetName();
However this code is not implemented in version 7.0, and I still want to use the same scripts on computers running this version.

Thank you, Evan.


2   L A T E S T    R E P L I E S    (Newest First)
evanm Posted - 09/08/2004 : 09:12:00 AM
Thanks Mike, that works perfectly!

Mike Buess Posted - 09/08/2004 : 09:06:28 AM
Hi Evan,

%(n,@D) will give you nth plotted dataset in all versions of Origin. The %(%H, @D) notation is intended for worksheets although it might have also worked for graphs in previous versions.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 09/08/2004 09:13:12 AM

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