i have several topics concerning liquidcrystal library:
Firstly. In Tutorial (http://arduino.cc/en/Tutorial/LiquidCrystal) all pictures and all circuit seems to be bad - like they tell in 4bit mode to connect diplay to D0-D3, correct it should be D4-D7. On my display, the D4 - D7 contacts are on the place of the picture, there is perhaps just bad labeling. This is also mentioned in text several times.
Secondly: Mightbe in new version is svapped eg. lcd.begin(2, 16), according to the code of the library it should be void
But after finding all this bugs it still works just sometimes... i have 1602B display and cant get working the second row. It worked the first one, but now i am stucked back with no row working.. .
i am trying to say, that if i have standard 16x2 display i have 16 cols and 2 rows? In examples, you are initializing lcd.begin(2,16) - 2 columns and 16 rows?
Jan, although the examples have the rows and columns swapped in the begin method, with two or four line displays this should not make any difference if you give the correct values to the setCursor method.
Looking at that code, I think you will only have a problem if you try and set the cursor to a row that is higher then the actual number of rows on the LCD.