Name |
ValidateEx |
||||||||||||||||||||
Purpose |
Checks if a module is available and returns the Tag value of the specified module |
||||||||||||||||||||
Params |
|
||||||||||||||||||||
Returncode |
|
||||||||||||||||||||
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 |
Some compilers (known for Visual Studio C++ 2007 an newer) crash when using this command. The reason is the tag value parameter. Use Validate instead. The command has the same parameters but no tag value parameter.
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