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
 Delete a tree with project scope

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
corei5 Posted - 02/05/2019 : 1:59:06 PM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2018b b9.5.5.409
Operating System: Win 10 64-bit

Hello,

I'm trying to delete a tree with project scope but I'm not having any luck with the following command:

delete -rat myTree;

What am I doing wrong?

Thanks!
5   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 02/05/2019 : 9:36:41 PM
Looks like we need to improve this, I added

https://originlab.jira.com/browse/ORG-19681

to allow passing Labtalk tree to Origin C.

Until we improve this, you can add another OC function to delete that named tree from project, see

https://www.originlab.com/doc/OriginC/ref/Project-DeleteTree

We are in the process of beta testing 2019b, so if you are interested, you can contact support to get a beta version to try it out. We are also adding XML import with the new Data Connector framework, so you may want to check that out with your XML file.

CP

corei5 Posted - 02/05/2019 : 8:06:31 PM
This was the only way I was able to get my tree from the Origin C space to Labtalk based on input from Chris D:

https://my.originlab.com/forum/topic.asp?TOPIC_ID=45476

Hence, now I have a tree variable with project scope in Labtalk. If there's some other way to make this tree with session scope, I'm all in ;)

Thanks
cpyang Posted - 02/05/2019 : 6:49:32 PM
How did you create a project tree variable?
Usually they will be declared and so will be session based and
del -rat
will work.

CP
corei5 Posted - 02/05/2019 : 5:54:11 PM
Yes, the dialog allows the project tree to be deleted, but I would like an automated method to do it within my Labtalk script.
cpyang Posted - 02/05/2019 : 4:21:54 PM
Did you check the scope of variables from

Script Window->Tools->Variables

dialog?

CP

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