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
 fill a column comment with workbook name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

thitchen

44 Posts

Posted - 07/19/2012 :  9:17:42 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.6 and Service Release 2(Select Help-->About Origin):
Operating System: win 7 pro

Hi, I need one line of code to fill a column comment with workbook name:

doc -ef W {
int ncols =wks.ncols;

//col(ncols).comment = workbook.name

}
How do I write that code, please?
Any help is appreciated, thanks!

thitchen

44 Posts

Posted - 07/19/2012 :  9:57:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
col(ncols)[C]$=%H;

this will give short name, but not long name, please help.

quote:
Originally posted by thitchen

Origin Ver. 8.6 and Service Release 2(Select Help-->About Origin):
Operating System: win 7 pro

Hi, I need one line of code to fill a column comment with workbook name:

doc -ef W {
int ncols =wks.ncols;

//col(ncols).comment = workbook.name

}
How do I write that code, please?
Any help is appreciated, thanks!

Go to Top of Page

thitchen

44 Posts

Posted - 07/19/2012 :  10:45:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
col(Mean)[C]$=%(@WL);

this is not right either
quote:
Originally posted by thitchen

col(ncols)[C]$=%H;

this will give short name, but not long name, please help.

quote:
Originally posted by thitchen

Origin Ver. 8.6 and Service Release 2(Select Help-->About Origin):
Operating System: win 7 pro

Hi, I need one line of code to fill a column comment with workbook name:

doc -ef W {
int ncols =wks.ncols;

//col(ncols).comment = workbook.name

}
How do I write that code, please?
Any help is appreciated, thanks!



Go to Top of Page

thitchen

44 Posts

Posted - 07/19/2012 :  10:54:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
col(Mean)[C]$=page.longname$;

yeah, this works.
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