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
 Forum for Origin C
 matrix.CopyFromWks

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
couturier Posted - 12/03/2021 : 11:05:24 AM
Origin Ver. and Service Release (Select Help-->About Origin): 2022
Operating System: win10

Hi,

when copiing a wks to a matrix (with CopyFromWks()), is there any trick to ignore masked values in source wks (replace with missing values for example) ?
2   L A T E S T    R E P L I E S    (Newest First)
couturier Posted - 12/05/2021 : 09:15:45 AM
you're right
Tested again with matrix object (not Matrix) and it works as well
I must have done something wrong elsewhere
cpyang Posted - 12/04/2021 : 3:57:27 PM
Masked values are copied as missing values, I tried with code

void wm()
{
	Worksheet wks = Project.ActiveLayer();
	MatrixPage MatPg1;
	MatPg1.Create("Origin");
	MatrixLayer MatLy1 = MatPg1.Layers(0);
	Matrix Mat1(MatLy1);

	Mat1.CopyFromWks(wks);
}



And here is what I saw


Can you check that you did not disable masking? try @MM= in script window.

CP

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