Options

Configuration Mode in C/AL

rjmvdvenrjmvdven Member Posts: 22
Does anyone know if it is possible to see in C/AL code if the client is in Configuration Mode? I want to perform some special code when in configuration mode, but not in regular mode.
Best Regards,

Remco van de Ven

Best Answers

Answers

  • Options
    rjmvdvenrjmvdven Member Posts: 22
    Hi SilverX,

    Thanks, this works great. I would never have figured this out myself.
    Best Regards,

    Remco van de Ven
  • Options
    vaprogvaprog Member Posts: 1,128
    Hi SilverX

    Is there an advantage of using the ManagementObjectSearcher over the comparably simple System.Environment.GetCommandLineArgs?
  • Options
    SilverXSilverX Member Posts: 134
    edited 2016-12-14
    I assume there is no advantage, except if you get payed for lines if Code.

    I would go for the shorter Version. But keep into Account that configure is Not neccesarily the First Parameter...
    Cheers
    Carsten


    ==> How To Ask Questions The Smart Way

    This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
Sign In or Register to comment.