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
 Forum for Python
 Set column values by function and set comments
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Dr.locking

3 Posts

Posted - 01/17/2024 :  02:50:53 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi there,
I met a problem in programming using python to set column values by user-defined mathematical function. I didn't find any embedded function to fix this problem. There also can't find a originpro embedded function to set string-type values to comments of worksheets. Can anyone help me to fix these problems? If any python programming examples supported, it would be nice.

Thanks!

ChaoC

USA
174 Posts

Posted - 01/17/2024 :  10:38:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

You can Set Column Value formula with set_formula():
https://docs.originlab.com/originpro/classoriginpro_1_1worksheet_1_1WSheet.html#a599b3b251d3d3643fac2b2a80d177fa5

Other Python Methods for setting Formula: https://www.originlab.com/doc/python/tools/Set-Column-Values

You can set Comments with set_label():
https://docs.originlab.com/originpro/classoriginpro_1_1worksheet_1_1WSheet.html#a7d41c7449ab937ec89b237a8707d689e

Best,
Chao
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