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
 Origin Forum
 worksheet -pa ? doesn't take names with dash(es)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 05/30/2022 :  03:08:51 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2022b (64-bit) SR1 9.9.5.167
Windows 7 Pro SP1 x64

Greetings!

Following:
https://www.originlab.com/doc/Quick-Help/Graph-Template-LabTalk
and
https://www.originlab.com/doc/LabTalk/ref/Worksheet-cmd#-pa.3B_Plot_data_in_current_workbook.2Fworksheet_into_the_specified_cloneable_template

I try plotting using clonable template. However I empirically found that worksheet -pa ? does not work correctly with clonable templates containing dash(es) in their names, for example:
worksheet -pa ? C_PHIh-CPHIk

returns:
quote:
#Command Error!


Can you reproduce the issue?

---
Andrey

Echo_Chu

China
Posts

Posted - 05/30/2022 :  05:47:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
dash mark is reversed character in labtalk.

If you want to have it in the file name, please enclose it with double quote mark.

You can use script as below to get what you want.

worksheet -pa ? "C_PHIh-CPHIk";
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 05/30/2022 :  06:36:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Echo_Chu

dash mark is reversed character in labtalk.

If you want to have it in the file name, please enclose it with double quote mark.

You can use script as below to get what you want.

worksheet -pa ? "C_PHIh-CPHIk";



Got it.
Where do I read about LT reserved characters and their roles?

---
Andrey
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