/* Get FORM_BROWSER_STATEMENT from FORM_DISPLAY_ENGINE_STATEMENT based on the OpCode info. */
FORM_BROWSER_STATEMENT* GetBrowserStatement(IN FORM_DISPLAY_ENGINE_STATEMENT *DisplayStatement)
/* Get FORM_BROWSER_STATEMENT from FORM_DISPLAY_ENGINE_STATEMENT based on the OpCode info. */
FORM_BROWSER_STATEMENT* GetBrowserStatement(IN FORM_DISPLAY_ENGINE_STATEMENT *DisplayStatement)
{
  FORM_BROWSER_STATEMENT  *Statement;
  LIST_ENTRY              *Link;
  Link = GetFirstNode (&gCurrentSelection->Form->StatementListHead);
  while (!IsNull (&gCurrentSelection->Form->StatementListHead, Link)) {
    Statement = FORM_BROWSER_STATEMENT_FROM_LINK (Link);
    if (Statement->OpCode == DisplayStatement->OpCode) {
      return Statement;
    }
    Link = GetNextNode (&gCurrentSelection->Form->StatementListHead, Link);
  }
  return NULL;
}