/* Search a Question in Formset scope using its QuestionId. */
FORM_BROWSER_STATEMENT* IdToQuestion(IN FORM_BROWSER_FORMSET *FormSet, IN FORM_BROWSER_FORM *Form, IN UINT16 QuestionId)
/* Search a Question in Formset scope using its QuestionId. */
FORM_BROWSER_STATEMENT* IdToQuestion(IN FORM_BROWSER_FORMSET *FormSet, IN FORM_BROWSER_FORM *Form, IN UINT16 QuestionId)
{
  LIST_ENTRY              *Link;
  FORM_BROWSER_STATEMENT  *Question;
  Question = IdToQuestion2 (Form, QuestionId);
  if (Question != NULL) {
    return Question;
  }
  Link = GetFirstNode (&FormSet->FormListHead);
  while (!IsNull (&FormSet->FormListHead, Link)) {
    Form = FORM_BROWSER_FORM_FROM_LINK (Link);
    Question = IdToQuestion2 (Form, QuestionId);
    if (Question != NULL) {
      if (Question->Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE) {
        GetQuestionValue (FormSet, Form, Question, GetSetValueWithHiiDriver);
      }
      return Question;
    }
    Link = GetNextNode (&FormSet->FormListHead, Link);
  }
  return NULL;
}