return result;
PRUint32 curlen; GetLength(&curlen); if (curlen && (curlen > aLength)) { nsresult result=NS_OK; for (PRInt32 i = (curlen - 1); (i>=(PRInt32)aLength) && NS_SUCCEEDED(result); i--) { result = Remove(i); } } else { }  return NS_OK;
nsHTMLOptionCollection::SetLength(PRUint32 aLength){  nsresult result = NS_ERROR_UNEXPECTED;  if (mSelect) {    if (mDirty) {      GetOptions();    }      result = mSelect->SetLength(aLength);  }  return result;  }