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
 ImportASCII Failure-Message
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Dominik Paulkowski

Germany
Posts

Posted - 11/22/2006 :  05:16:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Origin 7.5G SR6
Operating System: XP Professional

There is an error message at the script window, when I am running my script. It is caused by ImportASCII.

Script window:
"echo=1;
Start of import
Before ImportASCII
Error:draw -n header -r
Behind ImportASCII
End of import"

The C-Script is there:
"...

printf("Start of import\n");
// Get current ascimp settings from worksheet
ASCIMP ascimp;
wks.GetASCIMP(ascimp);
// AscImpReadFileStruct(saFilePaths[i],&ascimp); // Read file and automtaic parameter settings

// Set header lines
//ascimp.iHeaderLines = nHdrLines;

// Settings of the ASCIMP filter:
int iDelimiter = ASCIMP_DELIM_TAB; // TABulator as separator of the columns
int iLabels = 0; //=0 to keep current column labels, =1,2 etc as 1st, 2nd line from top of sub header block to rename labels
int iRenameCols = 0; //=0 to keep column names,
int iSubHeaderLines = 0;//subheader block, after iHeaderLines, the number of lines to be used in column labels and names
int iAutoSubHeaderLines = 0; //=1 ignore iSubHeaderLines, auto determine, =0 to use iSubHeaderLines
int iAutoColTypes = 0; // Automatic recognition of column types is turned off
int iNumColumns = 4; // Number of columns to import
ascimp.iRenameWks = 0;
// =0 to keep current name

printf("Before ImportASCII\n");
// Import file
int iRet = wks.ImportASCII(saFilePaths[i], ascimp);
printf("Behind ImportASCII\n");
if( iRet != 0 )
{
printf("Import failed with error: %d\n", iRet);
wpg.Destroy();
return;
}
printf("End of import\n");

..."

Did I forgotten any important script settings?

-------------------
:-Dipl.-Phys. at
Fraunhofer Institute for Surface Engineering and Thin Films IST, Braunschweig, Germany

Mike Buess

USA
3037 Posts

Posted - 11/22/2006 :  06:29:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Dominik,

That particular error message always occurs with ASCII import and can be safely ignored.

Mike Buess
Origin WebRing Member
Go to Top of Page

Dominik Paulkowski

Germany
Posts

Posted - 11/22/2006 :  11:01:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Well.

Thank you, Mike.

-------------------
:-Dipl.-Phys. at
Fraunhofer Institute for Surface Engineering and Thin Films IST, Braunschweig, Germany
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