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
 Using the "Col" command with an integer variable

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
ds755 Posted - 05/10/2018 : 1:24:08 PM
Origin Ver. and Service Release (Select Help-->About Origin): Origin 2018 SR1
Operating System: Windows 8.1

Hello,

How can I use the "Col" command with an integer variable?

I notice that:

int i=1;
Col(i)[L]$="Current";


does not write to Column 1 but instead creates a new column.

Thanks for your help.
2   L A T E S T    R E P L I E S    (Newest First)
ds755 Posted - 05/13/2018 : 12:36:09 PM
Excellent. Thanks a lot.
Castiel Posted - 05/10/2018 : 11:15:27 PM
quote:
Originally posted by ds755

Origin Ver. and Service Release (Select Help-->About Origin): Origin 2018 SR1
Operating System: Windows 8.1

Hello,

How can I use the "Col" command with an integer variable?

I notice that:

int i=1;
Col(i)[L]$="Current";


does not write to Column 1 but instead creates a new column.

Thanks for your help.



Either

int i = 1;
col(%(i))[L]$ = "Current";


Or

int i = 1;
wcol(i)[L]$ = "Current";



     #####
    #### _\_  ________
    ##=-[.].]| \      
    #(    _\ |  |------|
     #   __| |  ||||||||
      \  _/  |  ||||||||
   .--'--'-. |  | ____ |
  / __      `|__|[o__o]|
_(____nm_______ /____\____ 

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