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
 LabTalk Forum
 Before Formula Script via Labtalk

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
guy27 Posted - 08/11/2017 : 03:12:15 AM
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]$);

2   L A T E S T    R E P L I E S    (Newest First)
guy27 Posted - 08/13/2017 : 4:56:56 PM
Great, this works
Thanks
Chris D Posted - 08/11/2017 : 12:43:25 PM
Hi,

Instead of using:

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

Try this:

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


Thanks,
Chris Drozdowski
Originlab Technical Support

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