| ASCIMP  NameASCIMP DescriptionDeclaration
typedef struct tagASCIMP{
        int _id(IDE_ASCIMP_DELIMITED) iDelimited;
        int _id(IDE_ASCIMP_DELIMCODE) iDelimiter;
        char _id(IDE_ASCIMP_DELIMCHAR) cChar;
        char _id(IDE_ASCIMP_COLWIDTHS) szFixedWidth[MAX_FIXED_COL_WIDTH];
        int _id(IDE_ASCIMP_headLINES) iheaderLines;
        int _id(IDE_ASCIMP_SUBheadLINES) iSubheaderLines;
        int _id(IDE_ASCIMP_AUTOSUBhead) iAutoSubheaderLines;
        int _id(IDE_ASCIMP_AUTOCOLTYPES) iAutoColTypes;
        int _id(IDE_ASCIMP_TESTLINES) iTestLines;
        int _id(IDE_ASCIMP_IMPORTMODE) iMode;
        int _id(IDE_ASCIMP_NUMCOLUMNS) iNumColumns;
        int _id(IDE_ASCIMP_PARTIAL) iPartial;
        int        _id(IDE_ASCIMP_PARTIALC1) iPartialC1;
        int _id(IDE_ASCIMP_PARTIALC2) iPartialC2;
        int _id(IDE_ASCIMP_PARTIALR1) iPartialR1;
        int _id(IDE_ASCIMP_PARTIALR2) iPartialR2;
        int _id(IDE_ASCIMP_RENAMEWKS) iRenameWks;
        int _id(IDE_ASCIMP_APPLYRANGE) iApplyRange;
        int _id(IDE_ASCIMP_RENAMECOLS) iRenameCols;
        int _id(IDE_ASCIMP_LABEL) iLabels;
        int _id(IDE_ASCIMP_MAXLABELS) iMaxLabels;
        int _id(IDE_ASCIMP_LEADZERO) iLeadingZeroes;
        int _id(IDE_ASCIMP_ALLOWALLTEXT) iAllowAllText;
        int _id(IDE_ASCIMP_NONNUMERIC) iNonnumeric;
        int        _id(IDE_ASCIMP_MAXTESTLINES) iMaxTestLines;
        int        _id(IDE_ASCIMP_SKIPROWS) iSkipRows;
        int _id(IDE_ASCIMP_READROWS) iReadRows;
        char _id(IDE_ASCIMP_DATEFORMAT) szDateFormat[MAX_SIZE_CUSTOM_FORMAT];
        int _id(IDE_ASCIMP_SKIPCHARS) iLabelSkipChars;
        int _id(IDE_ASCIMP_LONGNAMES) nLongNames;
        int _id(IDE_ASCIMP_UNITS) nUnits;
        int _id(IDE_ASCIMP_FIRSTPARAMS) nFirstParams;
        int _id(IDE_ASCIMP_NUMPARAMS) nNumParams;
        int _id(IDE_ASCIMP_FIRSTUSERPARAMS) nFirstUserParams;
        int _id(IDE_ASCIMP_NUMUSERPARAMS) nNumUserParams;
        int _id(IDE_ASCIMP_FIRSTSAVE) nFirstSave;
        int _id(IDE_ASCIMP_NUMSAVE) nNumSave;
        DWORD _id(IDE_ASCIMP_FLAGS) flags;
        int _id(IDE_ASCIMP_NUMSEP) nNumSep;
        int _id(IDE_ASCIMP_SPECIALFORMAT) nSpeFmt;
        char _id(IDE_ASCIMP_DELIMITERS) cDelimiters[ASCIMP_MAX_DELIMITERS];
        char _id(IDE_ASCIMP_DELIMITERSARRAY) cDelimitersArray[ASCIMP_MAX_DELIMITERS];
        char _id(IDE_ASCIMP_QUOTECHAR) cQuote;
        char _id(IDE_ASCIMP_VERSION)     cVersion;
} ASCIMP;
Members
    iDelimited1 if delimited, 0 if Fixed format, szFixedWidth must be filled if iDelimited==0iDelimiterused only if iDelimited==1, one of the ASCIMP_DELIM_TAB, ASCIMP_DELIM_COMMA etccCharused only if iDelimited==1 && iDelimiter==ASCIMP_DELIM_OTHER, char to be used as delimiterszFixedWidthfor iDelimited==0, comma separated string for each col widthiheaderLinesfile header, before those header that can be used as column headingsiSubheaderLinessubheader block, after iheaderLines, the number of lines to be used in column labels and namesiAutoSubheaderLines=1 ignore iSubheaderLines, auto determine, =0 to use iSubheaderLinesiAutoColTypesto change column type according to detection, 0=diable, 1=use detection, 2=detect but not to change if text columniTestLinesNumber of lines used for structure testing that must be consistentiModeASCIMP_MODE_REPLACE_DATA, ASCIMP_MODE_APPEND_COLS etciNumColumnsnum cols found from auto detectioniPartial=1 to specify partial import, =0 if whole file imported, ignore iPartialC1, iPartialC2, iPartialR1, R2iPartialC1iPartialC2iPartialR1iPartialR2iRenameWks=1 to rename worksheet, =0 to keep current nameiApplyRangenot used anymore,iRenameCols=0 to keep column names, =1 to rename columns using 1st line above detected data, =2 use 2nd line etciLabels=0 to keep current column labels, =1,2 etc as 1st, 2nd line from top of sub header block to rename labelsiMaxLabelsnumber of lines in subheader block to be used in column label renameiLeadingZeroes=1 to consider 0123 as numbers, =0 if 0123 is considered as textiAllowAllText=1 to allow import all text data, =0 NOT allowiNonnumericthis has to do with what to do when none-numeric is found in numeric columniMaxTestLinesrelated to iTestLines, scan upto this number of lines for consistent structureiSkipRowsallow skip rows, =0 if no skipping of rowsiReadRowsused only if iSkipRows > 0, and must not be 0. import will read iReadRows, then skip iSkipRows, then read iReadRows againszDateFormatiLabelSkipCharsnLongNamesheader line containing long column namesnUnitsheader line containing column unitsnFirstParamsFirst header line containing column parametersnNumParamsNumber of header lines containing column parametersnFirstUserParamsFirst header line containing column user parametersnNumUserParamsNumber of header lines containing column user parametersnFirstSaveFirst header line to save into binary storagenNumSaveNumber of header lines to save into binary storageflagssee AI_FLAG_* for usesnNumSepdecimal char,'.'=NF_IS_AMERICAN, ','=NF_IS_EUROPEANnSpeFmtcDelimiterscDelimitersArraysupport Delimiters like "AI", "BIG"cQuotecVersion RemarkExamplesheader to Includeorigin.h See AlsoReference |