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
 variable in range notation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

HuangZY

10 Posts

Posted - 08/28/2008 :  10:00:07 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
[OriginPro SR0]

1> Variable in range notation
I have the following data in a sheet,

20.6 20.4 20.2 18.1 19.1
21.7 21 20.9 19.3 19.7


why the following scripts have different results,
>>script 1
range r1 = 1[1]:5[1]
mark -d r1


>> script 2
i = 1
range r2 = 1:5[i]
mark -d r2


[i]
2> Copy non-continual rows data
(operation, not script)
when I select non-continual rows (e.g. all the even rows), I can delete the selected rows from the context menu, but can not copy and paste the rows. Why?

HuangZY

10 Posts

Posted - 08/28/2008 :  10:06:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply


>> script 2
i = 1
range r2 = 1[i]:5[i]
mark -d r2

Go to Top of Page

minimax

367 Posts

Posted - 08/29/2008 :  02:44:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi HuangZY,

For now I think you can try
i = 1;
range r2 = 1[$(i)]:5[$(i)];
mark -d r2;


Max
OriginLab Technical Support
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