Exemplo n.º 1
0
//---------------------------------------------------------------------------
int32_t CSVFile::readShort(uint32_t row, uint32_t col, int16_t& value)
{
	int32_t result = seekRowCol(row, col);
	if(result == NO_ERROR)
	{
		value = textToShort(dataBuffer);
	}
	else
		value = 0.0f;
	return(NO_ERROR);
}
Exemplo n.º 2
0
//---------------------------------------------------------------------------
long CSVFile::readShort (DWORD row, DWORD col, short &value)
{
	long result = seekRowCol(row,col);
	if (result == NO_ERR)
	{
		value = textToShort(dataBuffer);
	}
	else
		value = 0.0f;
	
	return(NO_ERR);
}