Licence Protector

ValidateEx

Hide Navigation Pane

ValidateEx

Previous topic Next topic No directory for this topic  

ValidateEx

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

Name

ValidateEx                                                                                          

Purpose

Checks if a module is available and returns the Tag value of the specified module

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module to be tested

Name

String

Tom

The user or item name to check for

UseWindowsUser

Boolean

False

Determines if the windows login name should be used as name

TagValue

String, output

Empty

A variable which can absorb the Tag value of the module

Returncode

Returncode

Type Integer

Note

All values

See list of return codes

Usage

To validate a module for a specified user or item and get the Tag value at the same time

Sample

 

  sTag := ‘’;

  iRes := lic.ValidateEx(‘D1001’, ‘’, true, sTag);

  if iRes = 0 then

  begin

     << successfully validated, use sTag >>

     ...

  end

  else if iRes = 1 then

  begin

     << successfully validated, it’s a demo version, use sTag >>

     ...

  end

  else

  begin

     << validation failed, usage of module not allowed >>

     ...

 

See also

Prepare, Quit, Validate, ValidatesYes

 

 

 

Yes / No module

The return codes for a Yes/No module (module type = 4) are:

 

0 = module is Yes

1 = module is Yes AND it is a demo version

3 = module is No