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
 How to set values in "Ascii Import Option"?

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
tlab Posted - 03/19/2003 : 9:59:02 PM
From LabTalk, how to set those values in "ASCII Import Option"? such as "# of column", "skip main header, number of line"?

Thanks.

Gobman
5   L A T E S T    R E P L I E S    (Newest First)
tlab Posted - 03/21/2003 : 9:32:34 PM
Thanks a lot, you two. I will try both methods.

Cheers.

Gobman
cpyang Posted - 03/21/2003 : 4:37:20 PM
In Origin C, Worksheet class has GetASCIMP, SetASCIMP functions. It seems though they were not documented. There is also a utility function AscImpReadFileStruct that will initialize the ASCIMP struct from a given ascii file.

Try this,


 
void turn_of_rename_wks()
{
ASCIMP ascimp;

Worksheet wks = Project.ActiveLayer();

wks.GetASCIMP(ascimp);

out_int("Rename wks =", ascimp.iRenameWKS);

ascimp.iRenameWKS = 0;// turn off wks rename;

wks.SetASCIMP(ascimp);

}




CP


Edited by - cpyang on 03/21/2003 5:03:25 PM
Mike Buess Posted - 03/21/2003 : 08:47:12 AM
Hi Gobman,

Once again, not to my knowledge. A potentially awkward but useful workaround is to create a separate template for each combination of ASCII Options that you will likely need. The awkward part would be remembering which template had which options, but a clever naming convention should take care of that.

Mike Buess
Origin WebRing Member
tlab Posted - 03/21/2003 : 07:32:51 AM
Thank you anyway. How about OriginC? are there any easy way in OriginC to do so? Thanks.

Gobman.
Mike Buess Posted - 03/20/2003 : 4:52:41 PM
Hi Gobman,

I don't think the ASCII Options can be controlled from LabTalk. Sorry.

Mike Buess
Origin WebRing Member

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