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
 LabTalk: define a range based on strings
 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 - 04/29/2020 :  5:30:45 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2019b (64-bit) 9.6.5.169
Windows 7 Pro x64 SP1

Greetings!

I need to define a range for two columns using its components stored in strings:


string BookLongName$ = "MainBook";
string SheetLongName$ = "01";
string Column1LongName$ = "Time";
string Column2LongName$ = "Value";

range Target = ["..."]"..."!"..." // What should I put instead of ellipsis?


Thank you.

Edited by - AKazak on 04/29/2020 5:41:59 PM

aplotnikov

Germany
160 Posts

Posted - 04/29/2020 :  6:36:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use %() substitution notation:

[%(BookName$)] for short names or ["%(BookName$)"] for long names
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 04/30/2020 :  07:33:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by aplotnikov

Use %() substitution notation:

[%(BookName$)] for short names or ["%(BookName$)"] for long names



Great!
Thank you very much.

Here is the corresponding help section: https://www.originlab.com/doc/LabTalk/guide/Substitution-Notation
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