if (0 <= index && index < count) { error (SWT.ERROR_CANNOT_GET_ITEM); } else { error (SWT.ERROR_INVALID_RANGE); }
if (0 <= index && index < count) error (SWT.ERROR_CANNOT_GET_ITEM); error (SWT.ERROR_INVALID_RANGE);
public String getItem (int index) {	checkWidget ();	int length = OS.SendMessage (handle, OS.LB_GETTEXTLEN, index, 0);	if (length != OS.LB_ERR) {		TCHAR buffer = new TCHAR (getCodePage (), length + 1);		int result = OS.SendMessage (handle, OS.LB_GETTEXT, index, buffer);		if (result != OS.LB_ERR) return buffer.toString (0, length);	}	int count = OS.SendMessage (handle, OS.LB_GETCOUNT, 0, 0);	if (0 <= index && index < count) {		error (SWT.ERROR_CANNOT_GET_ITEM);	} else {		error (SWT.ERROR_INVALID_RANGE);	}	return "";}