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
 Worksheet significant digits with wproperties

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
scalpas Posted - 02/22/2016 : 3:37:07 PM
Hi

I'd like to set the number of significant digits in a worksheet programmatically using LabTalk.

So far I've managed to set the mode to significant digits using :

wproperties execute:=get iotrgui:=tr;
tr.TextControl.DigitsMode = 2;
wproperties execute:=set iotrgui:=tr;


Now, how do I actually set the number of significant digits ?

Thanks !


Origin Ver. 9.0 and Service Release 1 :
Operating System: 7 64 bit
2   L A T E S T    R E P L I E S    (Newest First)
scalpas Posted - 02/23/2016 : 3:15:12 PM
Thanks Hideo, that works very well !
Hideo Fujii Posted - 02/22/2016 : 5:24:14 PM
Hi scalpas,

The aim of worksheet properties is ad hoc changes of cell formats like for cell colors, etc.,
corresponds to the options in the Format Cells dialog:
http://www.originlab.com/doc/Origin-Help/FormatCells-Dialog

Instead, I suggest to set the properties of the worksheet column object (wks.col#):
http://www.originlab.com/doc/LabTalk/ref/Wks-Col-obj

E.g.,:
for(ii=1; ii<=wks.ncols; ii++) {
 wks.col$(ii).digitMode=2; //Sig Digits
 wks.col$(ii).digits=10;   //# of digits
}
Hope this helps.

--Hideo Fujii
OriginLab

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