[This is preliminary documentation and subject to change.]
The TargName method returns the name of the navigation target specified in the event.
[ sTargName = ] object.TargName
This property only returns a string for Nav trigger events. Other types of events will always return an empty string (""). The value returned is that specified in the targetName parameter of the Nav trigger.
For example, if the enhancement stream contained the Nav trigger event, 00:20:05.0 trigger ("2 <MyEnh.htm>[targ:Left]");
, your application could use TargName to extract the target name, Left
, from the event.
Windows NT: Unsupported.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in stream.idl.
Import Library: Included as a resource in stream.dll.
Unicode: Yes.
Nav trigger, EnhEvent.PageName
The following example retrieves the name of the navigation target from an event and stores it in the variable sTarg
.
'Declare a string variable to receive the target name.
Dim sTarg As String
'Retrieve the target name from an event.
sTarg = e.TargName