PRInt32 index = -1; nsIDOMHTMLSelectElement* select = nsnull; if (NS_SUCCEEDED(mContent->QueryInterface(kIDOMHTMLSelectElementIID, (void**)&select))) { select->GetSelectedIndex(&index); NS_RELEASE(select);
PRInt32 indx = -1; nsIDOMHTMLSelectElement* thisSelect = nsnull; if (NS_SUCCEEDED(mContent->QueryInterface(kIDOMHTMLSelectElementIID, (void**)&thisSelect))) { thisSelect->GetSelectedIndex(&indx); NS_RELEASE(thisSelect);
nsSelectControlFrame::GetSelectedIndex(){  PRInt32 index = -1; // No selection  nsIDOMHTMLSelectElement* select = nsnull;  if (NS_SUCCEEDED(mContent->QueryInterface(kIDOMHTMLSelectElementIID, (void**)&select))) {    select->GetSelectedIndex(&index);    NS_RELEASE(select);  }  return(index); }