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
 Before Formula Script via Labtalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

guy27

8 Posts

Posted - 08/11/2017 :  03:12:15 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro2015 (64-bit) Sr2
Windows 7 Enterpise

Hello,
How can I access the "Before Formula Scritps"field in the "Set values dialog via labtalk from the script window?

I can access the Formula field in the same dialog via:
col(E)[O]$=Col(D)*2;
But if I enter the following in a script window
col(B)[O]$=Col(A)*%(col(A)[P1]$);
it will evaluate the value of the parameter. and thus not recalculate if the parameter is changed afterwards.

I would like to to end up with the following if I open the "Set values"dialog afterwards

Forumula: Col(B)=
Col(A)*f

Before formula script
double f=%(col(A)[P1]$);

Chris D

428 Posts

Posted - 08/11/2017 :  12:43:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Instead of using:

double f=%(col(A)[P1]$);

Try this:

double f=value(col(A)[P1]$);


Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

guy27

8 Posts

Posted - 08/13/2017 :  4:56:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Great, this works
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