Licence Protector

IsEntryActivated

Hide Navigation Pane

IsEntryActivated

Previous topic Next topic No directory for this topic  

IsEntryActivated

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

 

Name

IsEntryActivated                                                                                          

Purpose

Checks if an registered entry (user, computer, item) in a module is activated (= in use)

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module to be tested

Entryname

String

John

Name of the entry (user or computer or item)

Returncode

Returncode

Type Boolean

Note

True

This entry is activated in the specified module

False

This entry is deactivated or does not exist in the specified module (or an error occurs)

Usage

E.g. if you want to check if a user is already activated in the module

Sample

 

  if lic.ExistsEntry(‘D1001’, ‘John’) then

  begin

     if not lic.IsEntryActivated(‘D1001’, ‘John’) then

     begin

         << the entry John exists and is deactivated >>

         ...

     end

  end

  else

  begin

         ...

See also

ExistsEntry, DeactivateEntry, ActivateEntry, GetEntriesOfModule, RemoveDeactivated