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
 Ascii Import with multiple delimiters

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
marcel1992 Posted - 01/25/2021 : 10:00:29 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2021 9.8.0.200
Operating System: Windows 10

Hello together,
I have measurement data where I need to use multiple delimiters to extract the full data.
I thought with following labtalk it should run but it doesn't:
impASC fname:=....
Options.FileStruct.DataStruct:=2
Options.FileStruct.MultipleDelimiters:=;|

I think the problem is how to write the both delimiters together.
First delimiter is semicolon and the 2nd delimiter is pipe.
I tried to use a string where I put both signs together but this is not better. How is the correct form to tell labtalk I like theese both delimiters?
Thanks in Advance
2   L A T E S T    R E P L I E S    (Newest First)
marcel1992 Posted - 02/19/2021 : 04:54:38 AM
Hello YimingChen
I tryed your idea and it works.
Thanks for this.
YimingChen Posted - 01/25/2021 : 2:42:36 PM
Try this:
impASC fname:=... options.FileStruct.Delimiter:=5 options.FileStruct.Delimiters:=";|"

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