ValidatesYes
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 |
|
||||||||
Returncode |
|
||||||||
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 |