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
 Run() Method for Graphic Objects

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
cdrozdowski111 Posted - 01/06/2013 : 08:53:20 AM
OriginPro 9.0.0 SR1, Win7 64-bit, running in VMware Fusion 5.0.2

I added a text label to a 1 layer graph. It is named METADATA_LABEL2 and is attached to the layer frame and has substitution level 1.
I added the following script to it (for testing) and set Script Run After to "none":

type -a test;

I cannot figure out how to "manually" run this script via labtalk. I have tried all of the following (with the graph active) in the command window (again, for testing) and none seems to work:


METADATA_LABEL2.Run();

Graph1!METADATA_LABEL2.Run();

GObject goMDL2 = METADATA_LABEL2; goMDL2.run();

GObject goMDL2 = "METADATA_LABEL2"; goMDL2.run();


What might I be doing incorrectly?
1   L A T E S T    R E P L I E S    (Newest First)
cdrozdowski111 Posted - 01/06/2013 : 6:32:51 PM
Apparently, the script cannot be run via the Run() method unless it has been assigned to a Script, Run After event other than "None".

As a work-around, this appears to work:

GObject goMDL2 = "METADATA_LABEL2"; goMDL2.script = 1; goMDL2.Run(); goMDL2.script = 0;

Perhaps, this behavior can be changed in future releases.

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