Ignore:
Timestamp:
Jul 6, 2010, 8:09:10 AM (14 years ago)
Author:
Sam Habiel
Message:

Support for other encodings besides ASCII. Constructors available in BMXNetLib and and BMXNetConnectInfo.
Comments in several files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/RPMSDb.cs

    r815 r822  
    165165                                Type tType;
    166166
    167                                 int nTemp = 10;
     167                                int nTemp = 10; //length of @@@meta@@@
     168                //actual header
    168169                                sHeader = sHeader.Substring(10,(sHeader.Length - nTemp));
    169170                                string[] sRecordSetInfo = sHeader.Split(cFldDelim);
    170171
     172                //substract one because 1st item is RecordId|File# -- rest is columns
    171173                                numCols = sRecordSetInfo.GetLength(0)-1;
    172174                                m_aResultSets[nSet].metaData = new RPMSDbResultSet.MetaData[numCols];
    173175
    174                                 //First ^-Piece is recordset-level info: RecordIdentifier|File#
     176                                //Set FileID
     177                //First ^-Piece is recordset-level info: RecordIdentifier|File#
    175178                                string[] sRecordInfo = sRecordSetInfo[0].Split(cBar);
    176179                                m_aResultSets[nSet].fmFileID = sRecordInfo[1];
     180
     181                //What is the seed???
    177182                                if (sRecordInfo.GetLength(0) > 2)
    178183                                {
     
    190195                                }
    191196
     197                // Foreign key is included
    192198                                if (sRecordInfo.GetLength(0) > 3)
    193199                                {
     
    197203
    198204                                        m_aResultSets[nSet].fmKeyField = "";
    199                                 //2nd through nth ^-Pieces are Column info: Fileman File#FileMan Field#|DataType|Field Length|Column Name|IsReadOnly|IsKeyField
     205                                //2nd through nth ^-Pieces are Column info: Fileman File#|FileMan Field#|DataType|Field Length|Column Name|IsReadOnly|IsKeyField|????
    200206                                for (j=1; j < sRecordSetInfo.GetLength(0); j++)
    201207                                {
     
    208214                                        //Field 5 = IsReadOnly
    209215                                        //Field 6 = IsKeyField
     216                    //Field 7 {MISSING}
    210217                                        sFileID = sColumnInfo[0];
    211218                                        string sFieldID = sColumnInfo[1];
     
    302309                        string sFldDelim = "^";
    303310                        char[] cFldDelim = sFldDelim.ToCharArray();
     311            // nRecords-1 because last record is empty (Where $C(31) (end of record) is)
    304312                        m_aResultSets[nSet].data = new object[nRecords-1, numCols];
    305313                        string[] saRecord;
     
    310318                                for (int k = 0; k< saRecord.GetLength(0); k++)
    311319                                {
     320                    //Date Time validation
     321                    //TODO: Support Fileman DateTime
    312322                                        if (m_aResultSets[nSet].metaData[k].type == typeof(DateTime))
    313323                                        {
     
    385395                        int             nRecordSetCount;        //Count of recordsets
    386396
     397            //Gets Records[sets] (val is number of records for each set), Headers[sets] (val is header location in array), and number of record sets.
    387398                        IndexRecords(sResultArray, out naRecords, out naHeaderIndex, out nRecordSetCount);
     399            //Create array of result sets
    388400                        m_aResultSets = new RPMSDbResultSet[nRecordSetCount];
    389401
Note: See TracChangeset for help on using the changeset viewer.