Example #1
0
//---------------------------------------------------------------------------
int32_t CSVFile::readUShort(uint32_t row, uint32_t col, uint16_t& value)
{
	int32_t result = seekRowCol(row, col);
	if(result == NO_ERROR)
	{
		value = textToUShort(dataBuffer);
	}
	else
		value = 0.0f;
	return(NO_ERROR);
}
Example #2
0
//---------------------------------------------------------------------------
long CSVFile::readUShort (DWORD row, DWORD col, unsigned short &value)
{
	long result = seekRowCol(row,col);
	if (result == NO_ERR)
	{
		value = textToUShort(dataBuffer);
	}
	else
		value = 0.0f;
	
	return(NO_ERR);
}