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
 variable in range notation

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
HuangZY Posted - 08/28/2008 : 10:00:07 PM
[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?

2   L A T E S T    R E P L I E S    (Newest First)
minimax Posted - 08/29/2008 : 02:44:17 AM
Hi HuangZY,

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


Max
OriginLab Technical Support
HuangZY Posted - 08/28/2008 : 10:06:50 PM


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


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