Chapter 3 ActiveX IDispatch Interface Reference


IJagServer interface

Description

Type Library JAGAXWrapLib
ProgID Jaguar.JagServer

Contains utility methods for use in EAServer ActiveX components.

Methods

See Also

"Creating ActiveX Components" in the EAServer Programmer's Guide


IJagServer.WriteLog

Description

Writes a message to the server's log file.

Syntax

IJagServer.WriteLog(useTimeStamp, message)

Parameters

useTimeStamp

TRUE if the current date and time should be prepended to the log message; FALSE otherwise.

message

A message to be written to the server's log file.

Examples

The following Visual Basic fragment declares a function that writes a string to the server's log, prepended with the name of the component:

Private Function writeToLog(msg As String)
  Dim jserver As JAGAXWrapLib.JagServer
  Set jserver = New JAGAXWrapLib.JagServer
  jserver.WriteLog True, Format("MyComponent: " & msg)
End Function

See Also

"Creating ActiveX Components" in the EAServer Programmer's Guide

 


Copyright © 2001 Sybase, Inc. All rights reserved.