Licence Protector

ValidatesYes

Hide Navigation Pane

ValidatesYes

Previous topic Next topic  

ValidatesYes

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

 

Command no longer in use

 

Replaced with command Validate / ValdidateEX

 

 

Name

ValidatesYes                                                                                      

Purpose

Checks if a yes/no module could be used and is set to yes.

Params

Parameter

Type

Example

Note

ModuleID

String

D1004

Unique ModuleID – identifies the module to be tested

Returncode

Returncode

Type Integer

Note

All values

See list of return codes

0

1

3

Module is Yes
Module is set to Demoversion

Module is No

Usage

ValidatesYes is intended to validate yes/no modules (Type 4). It can not be used for modules of Type 1, 5 and 6 because these types need the user or item as parameter (Error 4096 is returned)

ValidatesYes can be replaced by a sequence of Validate() and Totallicenses().

Sample

 

  iRes := lic.ValidatesYes(‘D1004’);

  if iRes = 0 then

  begin

     << successfully validated, Module is Yes >>

     ...

  end

  else if iRes = 1 then

  begin

     << successfully validated, it’s a demo version and Module is Yes >>

     ...

  end

  else if iRes = 3 then

  begin

     << successfully validated, but the Module is No >>

     ...

  end

  else if iRes = 4096 then

  begin

     << D1004 seems to be not a Module of type 4. Use Validate instead… >>

     ...

  end

  else

  begin

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

     ...

 

See also

Prepare, Quit, ValidateEx, Validate