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
 Long file name in Origin

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
circumvent Posted - 02/03/2009 : 6:15:30 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
VincentLiu Posted - 02/05/2009 : 04:06:55 AM
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
circumvent Posted - 02/03/2009 : 11:35:39 PM
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

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