VaComm mode change at runtime feasibility

Is it possible to change the operating mode of VaComm at runtime by switching the various MonitorEvents ON or OFF? If so, What is the appropriate code syntax required to gain access to the MonitorEvents switches. I have tried various approaches but the compiler (C++ Builder 10.3 Community Edition) rejects them. Could you please give an example?


MonitorEvents is a set:

  TVaCommEvent = (ceBreak, ceCts, ceDsr, ceError, ceRing, ceRlsd,
    ceRxChar, ceTxEmpty, ceRxFlag, cePErr, ceRx80Full, ceEvent1,
  TVaCommEvents = set of TVaCommEvent;

Using Delphi sets from C++Builder is explained here: