From Clomosy Docs

Revision as of 14:37, 14 October 2024 by ClomosyManager (talk | contribs) (Created page with "<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert"> function Clomosy.ClomosyID :Integer; </div> There are two different mobile applications for Clomosy: Clomosy CRM and Clomosy Learn. This feature is used to determine which application you are using. A return value of 0 means that the project was accessed through Clomosy CRM, while a value of 1 indicates that the project was accessed through Clomosy LEARN.<br> <b>E...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

There are two different mobile applications for Clomosy: Clomosy CRM and Clomosy Learn. This feature is used to determine which application you are using. A return value of 0 means that the project was accessed through Clomosy CRM, while a value of 1 indicates that the project was accessed through Clomosy LEARN.

Example
TRObject Syntax

var
  appState : Integer;
{
  appState = Clomosy.ClomosyID;
  case appState of
  {
    0 : ShowMessage('Clomosy CRM');
    1 : ShowMessage('Clomosy Learn');
  }
}

Base Syntax

var
  appState : Integer;
begin
  appState := Clomosy.ClomosyID;
  case appState of
    0 : ShowMessage('Clomosy CRM');
    1 : ShowMessage('Clomosy Learn');
  end;
end;

See Also