/* Base on the opcode buffer info to get the display statement. */
FORM_DISPLAY_ENGINE_STATEMENT* GetDisplayStatement(IN EFI_IFR_OP_HEADER *OpCode)
/* Base on the opcode buffer info to get the display statement. */
FORM_DISPLAY_ENGINE_STATEMENT* GetDisplayStatement(IN EFI_IFR_OP_HEADER *OpCode)
{
  FORM_DISPLAY_ENGINE_STATEMENT  *DisplayStatement;
  LIST_ENTRY                     *Link;
  Link = GetFirstNode (&gDisplayFormData.StatementListHead);
  while (!IsNull (&gDisplayFormData.StatementListHead, Link)) {
    DisplayStatement = FORM_DISPLAY_ENGINE_STATEMENT_FROM_LINK (Link);
    if (DisplayStatement->OpCode == OpCode) {
      return DisplayStatement;
    }
    Link = GetNextNode (&gDisplayFormData.StatementListHead, Link);
  }
  return NULL;
}