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
 Origin Forum
 LabTalk: define a range based on strings

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
AKazak Posted - 04/29/2020 : 5:30:45 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 04/30/2020 : 07:33:01 AM
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
aplotnikov Posted - 04/29/2020 : 6:36:56 PM
Use %() substitution notation:

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

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