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
 Issue col(4) vs. [bk$](1)!col(4)

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
peter311 Posted - 07/28/2009 : 08:45:29 AM

Hi there,
I've got a problem with the right adressing of multiple cols.

I can use the command in the command window
col(d) = -ln(col(c)) and everything works fine.

But if I use [bk$]$(1)!col(d)=-ln([bk$]$(1)!col(c)) I'll get an error: Math can not be used with text columns (my free translation from German).
Do you have a clue, what I'm doing wrong? I've used the e.g. [bk$]$(ii)!cell(rownr,4) for other stuff and everything was right. bk is here bk$=%H.

Thanks in advance!
Peter


Origin Ver. and Service Release: 8G SR4
Operating System: Windows XP SP3
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 07/28/2009 : 4:00:02 PM
Range notation is used exclusively to define range variables. It cannot be used as a general notation for data access on either side of an expression.

string bk$ = %H;
range rc = [bk$]1!col(c);
range rd = [bk$]1!col(d);
rd = -ln(rc);

Note that $(1) is redundant. You only need the 1.

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