Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading first value of first row #31

Open
jaysonh opened this issue Oct 22, 2018 · 0 comments
Open

Error loading first value of first row #31

jaysonh opened this issue Oct 22, 2018 · 0 comments

Comments

@jaysonh
Copy link

jaysonh commented Oct 22, 2018

I always seem to get 0 when I load the first value of the first row. For example for the following csv file:

20,3,2 2,34,12 293,12,1 39,10,10
using this code:
`
ofxCsv thisCsv;
ofSetLogLevel(OF_LOG_VERBOSE);

if (thisCsv.load("test.csv"))
{
	ofLog(OF_LOG_VERBOSE) << "there should not be an 0's below";
	for (int i = 0; i < thisCsv.size(); i++)
	{
		ofxCsvRow thisRow = thisCsv.getRow(i);
		
		int val1 = thisRow.getInt(0);
		int val2 = thisRow.getInt(1);
		int val3 = thisRow.getInt(2);

		ofLog(OF_LOG_VERBOSE) << val1 << "," << val2 << "," << val3;
	}
}`

I always get 0 for val1? This is of9.8 windows, 0.20 of the addon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant