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
 Origin Forum
 "This" predefined variable not available anymore
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Tryphon

36 Posts

Posted - 01/29/2021 :  09:49:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

As stated there :
https://www.originlab.com/doc/Origin-Help/Wks-SetColVal-MenuOpt-Dialog

the predefined variable This should be available for usage in the "Before Formula Script" box.
However, in the Variables/Predefined Variables menu (Set Value window), "This" variable is not listed anymore. But I can see it for the main box where to write the column formulae.

Anyway, if I try to use "This" variable, it does not work properly. You may try:

col(This)[L]$="BlaBla";

in the "Before Formula Script" box.

As a result, a new empty column is created with "BlaBla" long name.

How to correct this?

Thank you!

Origin Ver. and Service Release: 2020b (64-bit) 9.7.5.184
Operating System: Windows 10

一击爆裂陈子豪

Taiwan
41 Posts

Posted - 01/29/2021 :  10:18:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Well... the doc also clearly stated that "This" variable "cannot be used in the Before Formula Script edit box".
Go to Top of Page

YimingChen

1621 Posts

Posted - 01/29/2021 :  10:23:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please use the syntax below:
wcol(j)[L]$="BlaBla";


James

Edited by - YimingChen on 01/29/2021 10:24:13 AM
Go to Top of Page

Tryphon

36 Posts

Posted - 01/29/2021 :  10:56:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I used This variable in the past under Origin 2015. My memory failed to remember how I precisely did it. Sure, the doc is clear.

wcol(j) works, thank you for your help!
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