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
 Ascii Import with multiple delimiters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

marcel1992

Germany
12 Posts

Posted - 01/25/2021 :  10:00:29 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Edited by - marcel1992 on 01/25/2021 10:05:01 AM

YimingChen

1666 Posts

Posted - 01/25/2021 :  2:42:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try this:
impASC fname:=... options.FileStruct.Delimiter:=5 options.FileStruct.Delimiters:=";|"
Go to Top of Page

marcel1992

Germany
12 Posts

Posted - 02/19/2021 :  04:54:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello YimingChen
I tryed your idea and it works.
Thanks for this.
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