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
 Long file name in Origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

circumvent

Posts

Posted - 02/03/2009 :  6:15:30 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.0
Operating System:

Hi,

Does anyone know how to keep long file name information (>12 letters) in Origin 8?
For example, if I import a file "xxx-xx-xx" and later save it using
"save -wh %H %H", two unwanted things happen.
1) the special letter such as dash"-" will disappear
2) the total length will cut if more than 12 letters.

I asked the same question in Origin 7.5 and was told that there was no solution due to system constrains. But in Origin8, when I import the files, the long file name DOES SHOW UP as the book and worksheet name. Then how to export them out?

Thanks,

Jinbo

circumvent

Posts

Posted - 02/03/2009 :  11:35:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
By the way, does anyone know how to activate a worksheet in a book.

Win -a name; will active a book or graph

but in case the book contains multiple worksheet, I don't know how to activate it.

Win -a [book]!worksheet is not working
Go to Top of Page

VincentLiu

China
Posts

Posted - 02/05/2009 :  04:06:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi circumvent,

To the 1st question:

In Origin 8, a worksheet can have a short name and a long name. The length of short names cannot exceed 13 characters and have lots of restrictions, such as it cannot contain spaces and cannot contain special characters (i.e.-, @, #, %, etc.). The length of the long names cannot exceed 32 characters and has fewer restrictions compared to the short name.

Please note that "%H" represents the short name of the current workbook. You can try to type "%H =" in the command window. And you will find that the returned string will look like "xxx", but not "xxx-xx-xx" as you expected.

To save the worksheet with the long name, you may use the following code:

string uffPath$ = system.path.ini$ + wks.name$; // Save the file in the User file folder
expASC type:=dat path:=uffPath$; //Save the file


For more details about expASC, please refer to

http://www.originlab.com/www/helponline/Origin8/en/mergedProjects/X-Function/X-Function/expasc.html

To the 2nd question:

You can try the following codes:

book1!page.active=1; //1 is the index of the worksheet in the workbook

For more details about the Page object, please refer to

http://www.originlab.com/www/helponline/origin8/en/LabTalk/LabTalk.htm#LabTalk/Page_(object).html

Best regards,
Vincent Liu
OriginLab Technical Services

Edited by - VincentLiu on 02/05/2009 04:09:21 AM
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