Skip to content

Get_Current_User_Count

See Also: Get_Licensed_Max_Users

Purpose

Returns the number of users that are currently running DataFlex applications using the same serial number (that use the same serial number as the program executing this code). Note that this is not the number of users on a server. If the license is registered with an unlimited number of users, this command will return 0.

Syntax

get_Current_User_Count
    integer_variable

Example

integer iUserCount
get_Current_User_Count to iUserCount

This example retrieves the current number of users running DataFlex into the integer variable iUserCount.

Notes

This command can cause Error 28696 "DataFlex is not installed in termlist.cfg, please run DFSETUP" if the DF_Open_Path is dynamically changed during program execution so that the License Count File ({SerialNumber.dfr}) can no longer be found.