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
 Cant export data with "Save -wh"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mellon042

Germany
Posts

Posted - 09/14/2005 :  07:41:23 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.1
Operating System: Windows2000

Hi,

i try to save data with the following code:
[export]
wks.export.cntrl=0;
wks.export.separator$=",";
wks.export.c1=1;
wks.export.c2=2;
wks.export.r1=1;
wks.export.r2=964;
save -WH %H %X%H.xy;

The file is created, but the data file contains no data. The file has a size of 0!
My worksheet is big enough, if I export manually everything is fine.

Can some help me?

Many thanks in advance!
Niklas

Mike Buess

USA
3037 Posts

Posted - 09/14/2005 :  10:26:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Niklas,

Your script works perfectly in Origin 7.5... file is written with the specified data. The only reason I can imagine that it would fail (other than a bug in Origin 6.1) is if the wks you want to export is not active when you run the script.

...Script would also fail if you haven't saved the project because %X would be empty. However, if a 0 byte file was created that's probably not the case.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 09/14/2005 10:31:42 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