PRBool isMultiple; nsresult result = NS_OK;  result = GetMultiple(&isMultiple); if (NS_OK == result) { if (isMultiple) { aType.Assign("select-multiple"); } else { aType.Assign("select-one"); }
if (aType) { *aType = NS_FORM_SELECT; return NS_OK; } else { return NS_FORM_NOTOK;
nsHTMLSelectElement::GetType(nsString& aType){  PRBool isMultiple;  nsresult result = NS_OK;  result = GetMultiple(&isMultiple);  if (NS_OK == result) {    if (isMultiple) {      aType.Assign("select-multiple");    }    else {      aType.Assign("select-one");    }  }    return NS_OK;}