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
 LabTalk Forum
 Change Format of Col to Date with shortname
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JThieser

16 Posts

Posted - 10/05/2011 :  04:42:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1379 Posts

Posted - 10/05/2011 :  09:18:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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;
Go to Top of Page

muckman

USA
1 Posts

Posted - 10/05/2011 :  1:41:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I personally use // Command
Go to Top of Page

JThieser

16 Posts

Posted - 10/06/2011 :  03:36:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks alot.
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