- Timestamp:
- Jul 6, 2010, 8:09:10 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/RPMSDb.cs
r815 r822 165 165 Type tType; 166 166 167 int nTemp = 10; 167 int nTemp = 10; //length of @@@meta@@@ 168 //actual header 168 169 sHeader = sHeader.Substring(10,(sHeader.Length - nTemp)); 169 170 string[] sRecordSetInfo = sHeader.Split(cFldDelim); 170 171 172 //substract one because 1st item is RecordId|File# -- rest is columns 171 173 numCols = sRecordSetInfo.GetLength(0)-1; 172 174 m_aResultSets[nSet].metaData = new RPMSDbResultSet.MetaData[numCols]; 173 175 174 //First ^-Piece is recordset-level info: RecordIdentifier|File# 176 //Set FileID 177 //First ^-Piece is recordset-level info: RecordIdentifier|File# 175 178 string[] sRecordInfo = sRecordSetInfo[0].Split(cBar); 176 179 m_aResultSets[nSet].fmFileID = sRecordInfo[1]; 180 181 //What is the seed??? 177 182 if (sRecordInfo.GetLength(0) > 2) 178 183 { … … 190 195 } 191 196 197 // Foreign key is included 192 198 if (sRecordInfo.GetLength(0) > 3) 193 199 { … … 197 203 198 204 m_aResultSets[nSet].fmKeyField = ""; 199 //2nd through nth ^-Pieces are Column info: Fileman File# FileMan Field#|DataType|Field Length|Column Name|IsReadOnly|IsKeyField205 //2nd through nth ^-Pieces are Column info: Fileman File#|FileMan Field#|DataType|Field Length|Column Name|IsReadOnly|IsKeyField|???? 200 206 for (j=1; j < sRecordSetInfo.GetLength(0); j++) 201 207 { … … 208 214 //Field 5 = IsReadOnly 209 215 //Field 6 = IsKeyField 216 //Field 7 {MISSING} 210 217 sFileID = sColumnInfo[0]; 211 218 string sFieldID = sColumnInfo[1]; … … 302 309 string sFldDelim = "^"; 303 310 char[] cFldDelim = sFldDelim.ToCharArray(); 311 // nRecords-1 because last record is empty (Where $C(31) (end of record) is) 304 312 m_aResultSets[nSet].data = new object[nRecords-1, numCols]; 305 313 string[] saRecord; … … 310 318 for (int k = 0; k< saRecord.GetLength(0); k++) 311 319 { 320 //Date Time validation 321 //TODO: Support Fileman DateTime 312 322 if (m_aResultSets[nSet].metaData[k].type == typeof(DateTime)) 313 323 { … … 385 395 int nRecordSetCount; //Count of recordsets 386 396 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. 387 398 IndexRecords(sResultArray, out naRecords, out naHeaderIndex, out nRecordSetCount); 399 //Create array of result sets 388 400 m_aResultSets = new RPMSDbResultSet[nRecordSetCount]; 389 401
Note:
See TracChangeset
for help on using the changeset viewer.