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
 Cant export data with "Save -wh"

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
mellon042 Posted - 09/14/2005 : 07:41:23 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 09/14/2005 : 10:26:01 AM
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

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