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 for Programming
 LabTalk Forum
 Using the "Col" command with an integer variable
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ds755

57 Posts

Posted - 05/10/2018 :  1:24:08 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Castiel

343 Posts

Posted - 05/10/2018 :  11:15:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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_______ /____\____ 
Go to Top of Page

ds755

57 Posts

Posted - 05/13/2018 :  12:36:09 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Excellent. Thanks a lot.
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