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
 Origin Forum
 Replace a set of values from selected rows

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
DAVX Posted - 03/03/2020 : 8:41:49 PM
friends, i´m trying to do this with a script line

in column A i have 50 rows with the number "1" and i want to replace the rows 20 to 30 (from column A) with the values in column C (the same amount of values)....

Is a basic example, the rows that i need to replace are more than 20.000, but im trying to figure out how to do it with a script line. I can do it with the "set values" tool, selecting the rows with the dialog "from-to-" and then set the value with the formula, but i have so many data that is way much easier trough script line

anyone can help me?

thanks in advance!


Origin Ver.2018 and Service Release 1
Win 10
2   L A T E S T    R E P L I E S    (Newest First)
DAVX Posted - 03/04/2020 : 5:03:08 PM
quote:
Originally posted by YimingChen

Try this script:

range r1 = col(A)[20:30];
r1 = col(c)[20:30];


James



Works Like a Charm!! Thank you!!
YimingChen Posted - 03/04/2020 : 10:27:11 AM
Try this script:

range r1 = col(A)[20:30];
r1 = col(c)[20:30];


James

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