>I'm looking to change my application license to be based on number of users. For that reason, I need to monitor number of users of my app and prevent too many users from using it.
Create a table with as many records as you will have users (or more, doesn't matter). Lock a record for each user.
locate for rlock()
if recno() > MAX_USERS
ErrorMsg("You have reached the maximum number of users.")
return
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)