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
 Change Format of Col to Date with shortname

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
JThieser Posted - 10/05/2011 : 04:42:45 AM
Hi,
i'm trying to change the format of a colunm to date and time.
i know one command wks.col1.format=4.....
But i would like to do it without the position of the col instead i would like to use the shortname...
something like wks.col(Time).Format=4....
But this doesn't work.
Any ideas??
Thanks alot
3   L A T E S T    R E P L I E S    (Newest First)
JThieser Posted - 10/06/2011 : 03:36:30 AM
Thanks alot.
muckman Posted - 10/05/2011 : 1:41:23 PM
I personally use // Command
greg Posted - 10/05/2011 : 09:18:10 AM
These all work ..

// Command - using colnum function which returns a number
worksheet -f colnum(Time) 4;

// Object - using colnum again
wks.col$(colnum(Time)).format = 4;

// Range
range ra = col(Time);
ra.format = 4;

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