SetCurrentActivity

Sets the activity for the current user.

Syntax

<HsvSystemInfo>.SetCurrentActivity lActivityCode, bstrDescription

Argument

Description

lActivityCode

Long (ByVal). The ID of the activity to be set. Valid values are represented by the HFMConstants type library constants listed in User Activity Constants.

Tip:

If you are adding an activity for a custom module, use USERACTIVITYCODE_EXTERNAL, which represents custom activities.

bstrDescription

String (ByVal). The description of the activity.