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
 Forum for Origin C
 How to remove quotation mark when importing file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

newuser_ca

70 Posts

Posted - 05/02/2013 :  3:20:14 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 8.6 in Win7

Hi,

How can I remove quotation mark when importing .csv file in Origin C.

If I manually import file from the Origin window, I can go to the import Option window and choose "Miscellaneous-->Text Qualifier" from "None" to ". But how to do it in Origin C?

Thanks.

vickey

14 Posts

Posted - 05/06/2013 :  02:13:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please refer to our sample:
http://ocwiki.originlab.com/index.php?title=OriginC:Import_ASCII#How_to_Remove_Quotation_Marks_from_csv_Files
and code below is especially what you want:
ai.cQuote = '\"';
ai.flags |= AI_FLAG_REMOVE_QUOTES;

Edited by - vickey on 05/06/2013 02:20:23 AM
Go to Top of Page

newuser_ca

70 Posts

Posted - 05/06/2013 :  3:14:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot.
It is working well now.
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