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
 Behavior and usage of Range Data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AlexD2

France
19 Posts

Posted - 01/13/2014 :  06:13:44 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.1 SR1
Operating System: Windows 7 (32 bit)

Hello,

There are several aspects of the behavior and usage of Range Data that I don't manage to grasp.

As a start, I don't understand why the following does not work:

// With non-contiguous cells selected in the active worksheet:
>>range -v rC3 = %C // declare a CellRange
>>type %(rC3)
[Book4]Sheet1!(A"Long_A"[1:1],A"Long_A"[1]:C"Long_C"[1],A"Long_A"[5]:C"Long_C"[5]) // This is OK
>>type "$(rC3)"
--
>>type $(rC3)
(empty line)

I assume this is a limitation of the type command? Or maybe the $() substitution notation?

If so, how can I display, access and assign the content of this type of range?

Thank you for your help!

AlexD2

AmandaLu

439 Posts

Posted - 01/14/2014 :  03:56:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi AlexD2,

range -v requires that the block must be contiguous. If the selected cells are non-contiguous, they are considered multiple blocks.

Regarding the bug in "type" command mentioned in this post,
http://originlab.com/forum/topic.asp?TOPIC_ID=9629

We have submitted a JIRA to require the fix in the future version.

Thanks,
Amanda
OriginLab Technical Service

Edited by - AmandaLu on 01/14/2014 05:07:54 AM
Go to Top of Page

AlexD2

France
19 Posts

Posted - 01/14/2014 :  08:47:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much for your answer Amanda.

I must have had a variable conflict in my previous Origin session since now the non-contiguous range declaration and stats command run fine.

Thank you also for the clarification about the -v option.

However, now that I repeat the tests, it seems that I the range -v declaration works partially?
At least I can then perform the stats analysis. But indeed, assigning values do not work consistently (when assigning a non-contiguous range, some values are assigned while others are not).

It would maybe be helpful if such operations were not allowed at all and if they were outputting some explanatory error message such as:
"[Operation] cannot be performed with [variable type]"

Thanks again for your answer.

AlexD2
Go to Top of Page

AlexD2

France
19 Posts

Posted - 01/14/2014 :  08:51:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Oups... I posted in the wrong topic.

Thanks for the info about the type command.

Best,

AlexD2
Go to Top of Page

greg

USA
1379 Posts

Posted - 01/14/2014 :  4:30:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Amanda's information is not quite correct. You can have a non-contiguous range, it's just that the variable has limited use. Specifically, it can only be used with an X Function that accepts "Input vector".

See
http://www.originlab.com/forum/topic.asp?TOPIC_ID=18739
Go to Top of Page

Conexclack

USA
2 Posts

Posted - 02/01/2014 :  11:48:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
helpful information all

thanks

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