This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
Refresh license

Refresh license 


 

Refresh license -> Function result 
Parameter Type   Description
Function result  Object in Status object

The Refresh license command updates the current 4D Server license. It connects you to the 4D customer database and automatically activates any new or updated licenses (e.g., additional purchased clients) related to the current license.

 

Returned object

The object returned by Refresh license contains the following properties:

PropertyTypeDescription
successbooleanTrue if the refresh action is successful, False otherwise.
statusnumberStatus code
statusTexttextStatus description
tipstextSuggestions to resolve error.

Note: This command can only be executed on 4D Server. If the method calling the command is executed locally on a remote client or in 4D single user, Refresh license does nothing.

Example  

You want to update your license and receive a message when it's completed:

  // Method to be executed on server
 C_OBJECT($res)
 $res:=Refresh license
 If($res.success)
    ALERT("Success")
 Else
    ALERT($res.statusText)
 End if

 
PROPERTIES 

Product: 4D
Theme: Licenses
Number: 1336

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)