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
 Forum for Origin C
 ImportASCII Failure-Message

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
Dominik Paulkowski Posted - 11/22/2006 : 05:16:22 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
Dominik Paulkowski Posted - 11/22/2006 : 11:01:04 AM
Well.

Thank you, Mike.

-------------------
:-Dipl.-Phys. at
Fraunhofer Institute for Surface Engineering and Thin Films IST, Braunschweig, Germany
Mike Buess Posted - 11/22/2006 : 06:29:55 AM
Hi Dominik,

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

Mike Buess
Origin WebRing Member

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