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
 Worksheet names including a dash (-)

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
DrKlein1 Posted - 07/22/2016 : 07:53:29 AM
Origin Ver. and Service Release (Select Help-->About Origin): Orign 2015G (64-bit)
Operating System: Windows 7

When a worksheet contains a dash in its name, like:
XLS0901-2-5
the labtalk command:
%E!cell(2,1)=;
returns an error message.
When I remove the dashes (XLS090125), the command works.
Is there a workaround so I can keep the name including the dashes?
The name is taken from an imported filename.

Thanks,
Oliver
3   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 07/29/2016 : 11:44:39 AM
Hi Oliver,

Sorry, the second sample above has mistake as crossed out...
The old rr(2)=; means the function notation with the argument=2 by regarding the dataset
as a function using inter/extrapolation.
The correct rr[2]=; with brackets [...] is a reference to the cell with the index.

My apologies.

--Hideo Fujii
OriginLab
DrKlein1 Posted - 07/26/2016 : 04:04:54 AM
Yes, it helped, thanks a lot!
Hideo Fujii Posted - 07/22/2016 : 10:03:47 AM
Hi Oliver,

> When a worksheet contains a dash in its name, like:
> XLS0901-2-5
> the labtalk command:
> %E!cell(2,1)=;
> returns an error message.

It seems the interpreter tried to evaluate the sheet name as a formula which contains the subtraction;
I'm not sure if it is a bug or not, but anyway using the traditional string register is tricky for substitution.
As a better manner. it may be better to use the string variable like:
///////////////////////////////
> %E=;
[Book1]XLS0901-2-5
> bs$=%E;
> bs$!cell(2,1)=;
bs$!cell(2,1)=888
///////////////////////////////

Or, my preferred style is to use the range variable, which is versatile once it is declared, like:
///////////////////////////////
> range rr=%E!col(1);
> rr(2)=;
> rr[2]=;
rr[2]=888
///////////////////////////////


I hope this helps.

--Hideo Fujii
OriginLab

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