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
 FindMasks: select, delete or alter masked cells
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1228 Posts

Posted - 07/05/2022 :  07:19:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2022b (64-bit) SR1 9.9.5.171
Windows 7 Pro SP1 x64

Greetings!

https://www.originlab.com/doc/LabTalk/ref/FindMasks-func helps locating indices of the masked cells. However this does not help getting a range object containing the masked cells to do manipulations, including selecting, deleting or changing values.

What is the proper way of getting a grange object of masked cells in the active worksheet?

Thank you.


---
Andrey

AKazak

Russia
1228 Posts

Posted - 07/06/2022 :  03:12:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Any ideas?

I discovered that any math operation on the masked cell via LT turns the masked cells to "--". Is this by design or a software bug?


---
Andrey
Go to Top of Page

minimax

362 Posts

Posted - 07/06/2022 :  05:48:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
yes, basically "mask" in Origin means excluded, and the value is treated as missing value on calculation.
Go to Top of Page

AKazak

Russia
1228 Posts

Posted - 07/06/2022 :  11:42:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by minimax

yes, basically "mask" in Origin means excluded, and the value is treated as missing value on calculation.



Got it!

How do I use LT to get a range object containing the masked cells to do manipulations, including selecting, deleting or changing values?

---
Andrey
Go to Top of Page

AKazak

Russia
1228 Posts

Posted - 07/11/2022 :  12:41:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Can you share an update, please?

Related topic: https://my.originlab.com/forum/topic.asp?TOPIC_ID=8138

---
Andrey
Go to Top of Page

minimax

362 Posts

Posted - 07/11/2022 :  02:14:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think there is no simple LT scripts, you may try OC codes.
Go to Top of Page

AKazak

Russia
1228 Posts

Posted - 07/11/2022 :  06:44:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by minimax

I think there is no simple LT scripts, you may try OC codes.



IMHO it is worth adding the facility to LT.
I will look into OC functions, but not sure if I find something useful to referenced the masked cells.

---
Andrey
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