if (mSelect) { rv = mSelect->SetLength(aLength);
PRUint32 curlen; PRInt32 i;  rv = GetLength(&curlen); if (NS_FAILED(rv)) { curlen = 0;
nsHTMLOptionCollection::SetLength(PRUint32 aLength){  nsresult rv = NS_ERROR_UNEXPECTED;  if (mSelect) {    rv = mSelect->SetLength(aLength);  }  return rv;}