I use this :
#include <LiquidCrystal.h> // include the library code:
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
void setup() {
lcd.begin(16, 4);
lcd.print("hello, world!");
}
void LCDpos(int Lcol, int Lrow) {
lcd.setCursor(Lcol, Lrow);
if(Lrow > 1) lcd.setCursor(Lcol + 16, Lrow - 2);
}
void loop() {
LCDpos(0,1); lcd.print("Line 1");
LCDpos(0,2); lcd.print("Line 2");
LCDpos(0,3); lcd.print("Line 3");
LCDpos(0,4); lcd.print("Line 4");
}