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
 How do I use colmove or colswap with a vaiable?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

eyP

Germany
Posts

Posted - 01/20/2012 :  04:20:08 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,
I want to use colmove or colswap with a variable index.
colswap rng:= [KDaten1]Sheet1!(4,3);

is working.
Now I want to use an index ii=4.
colswap rng:= [KDaten1]Sheet1!(ii,ii-1);

is NOT working.

JThieser

16 Posts

Posted - 01/20/2012 :  04:22:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hey maybe try this:
ii=4;
colswap rng:= [KDaten1]Sheet1!($(ii),$(ii-1));
Go to Top of Page

eyP

Germany
Posts

Posted - 01/23/2012 :  03:32:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you!
That's working.
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