EnhEvent.PageName

[This is preliminary documentation and subject to change.]

The PageName property returns the portion of EnhEvent.Name enclosed by angle brackets. This property is read-only.

Syntax

[ sPageName = ] object.PageName
 

Parts

object
Object expression that resolves to an EnhEvent object.
sPageName
String that receives the portion of Name enclosed by angle brackets (<>).

Remarks

This property is typically used to retrieve the filename from a trigger event. 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 PageName to extract the filename, MyEnh.htm, from the event.

QuickInfo

  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.

See Also

EnhEvent.TargName

Examples

The following example retrieves the name of the enhancement page specified in event e and stores it in the variable sName.

'Declare a variable to receive the page name.
Dim sName As String
 
'Retrieve the page name and location from an event.
sName = e.PageName