PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
KeyGetIdentifier (Function)
In French: CléRécupèreIdentifiant
Retrieves the identifier that was used to generate an initial key.
Reminder: The initial key was generated by 1000018848.
Example
// In the application, client side
InitialKey is string
InitialKey = KeyGenerateInitialKey(ClientID)
Info("Your license key is: " + InitialKey)

// -> InitialKey is transmitted to the application provider

// --------------------------------------------
// Provider side: calculating the activation key
ActivationKey is string
Identifier is string

ActivationKey = KeyCalcActivationKey(InitialKey)
Identifier = KeyGetIdentifier(InitialKey)
Info("Activation key generated for the client " + Identifier + " : " + ActivationKey)
// -> ActivationKey is transmitted to the client for the activation of his license

//--------------------------------------------
// Client side: Entering the activation key
gbActivationOK = KeyCompareKey(InitialKey, ActivationKey)
IF gbActivationOK = False THEN
Error("Wrong activation key")
EndProgram()
END
Syntax
<Result> = KeyGetIdentifier(<Initial Key>)
<Result>: Character string
Identifier used to generate the initial key. This identifier was used by KeyGenerateInitialKey.
<Initial Key>: Character string (with quotes)
Initial key supplied by the user of the application. This key was generated by KeyGenerateInitialKey.
Related Examples:
The Key functions Unit examples (WINDEV): The Key functions
[ + ] Using the functions for calculating the activation keys of WLanguage.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment