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
 Project range variable
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

muh

France
14 Posts

Posted - 06/25/2021 :  08:06:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there any way to create a project-scope range variable? Doc says that project level variables are created when un-declared double, string or dataset variable is used (rather strange way of doing things). But this does not work with range variables, which is pity, since I have couple of ranges, which I use as functions. Workaround is to put them in ProjectEvents.ogs with @glob qualifier; but is there a straight way of doing this?

YimingChen

1669 Posts

Posted - 06/25/2021 :  08:51:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Can you just define the range variables under the AfterOpenDoc section in ProjectEvents.ogs? Then each time the project is loaded, the script under this section gets executed to create the range variables.

James
Go to Top of Page

muh

France
14 Posts

Posted - 06/25/2021 :  10:06:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This _is_ my workaround. Exactly what I wrote above.
Go to Top of Page

YimingChen

1669 Posts

Posted - 06/25/2021 :  1:45:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Right, this is the only way to go.

Go to Top of Page

cpyang

USA
1406 Posts

Posted - 06/25/2021 :  3:32:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We are adding named range for next version (2022) and it will do exactly that, to define a named range with scope for project. Named range scope will be Sheet, Book, Project.

CP
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