How to set the cursor on the LCD using a variable?

Show what you really tried, not:

  lcd.setCursor(**varibale goes here**, 0);

Do you get a compile error, or does it compile but not do what you expect?