GuiUtils Object
Methods
|
Method Syntax |
Description |
|---|---|
CloseFile
Public Sub CloseFile( _
ByVal File As Long _
) |
This function closes a file that was opened using OpenFile. |
OpenFile
Public Function OpenFile( _ ByVal Name As String _ ) As Long |
The file will be created in the SAP GUI Documents Folder. Return Type The return value is a handle to the file. Name: Name of the text file to be created. For security reasons this name must not contain any path information. |
ShowMessageBox
Public Function ShowMessageBox( _ ByVal Title As String, _ ByVal Text As String, _ ByVal MsgIcon As Long, _ ByVal MsgType As Long _ ) As Long |
Shows a message box. Return Type The return value will be one of the GuiMessageBoxResult constants. Title: Title of the message boxText: Text of the message box. MsgIcon: MsgIcon sets the icon to be used for the message box and should be set to one of the GuiMessageBoxType constants.MsgType: MsgType sets the buttons available on the message box and should be set to one of the GuiMessageBoxOption constants. |
Write
Public Sub Write( _
ByVal File As Long, _
ByVal Text
As String _
) |
Write text to an open file without a new line at the end. |
WriteLine
Public Sub WriteLine( _
ByVal File As Long, _
ByVal Text
As String _
) |
Write text to an open file with a new line at the end. |
Properties
|
Property Syntax |
Description |
|---|---|
MESSAGE_OPTION_OK (Read-only)
Public Property MESSAGE_OPTION_OK As Long |
Belongs to GuiMessageBoxOption: The message box will show an "OK" button. |
MESSAGE_OPTION_OKCANCEL (Read-only)
Public Property MESSAGE_OPTION_OKCANCEL As Long |
Belongs to GuiMessageBoxOption: The message box will show an "OK" and a "Cancel" button. |
MESSAGE_OPTION_YESNO (Read-only)
Public Property MESSAGE_OPTION_YESNO As Long |
Belongs to GuiMessageBoxOption: The message box will show a "Yes" and a "No" button. |
MESSAGE_RESULT_CANCEL (Read-only)
Public Property MESSAGE_RESULT_CANCEL As Long |
Belongs to GuiMessageBoxResult: The message box was closed via the "Cancel" button. |
MESSAGE_RESULT_NO (Read-only)
Public Property MESSAGE_RESULT_NO As Long |
Belongs to GuiMessageBoxResult: The message box was closed via the "No" button. |
MESSAGE_RESULT_OK (Read-only)
Public Property MESSAGE_RESULT_OK As Long |
Belongs to GuiMessageBoxResult: The message box was closed via the "OK" button. |
MESSAGE_RESULT_YES (Read-only)
Public Property MESSAGE_RESULT_YES As Long |
Belongs to GuiMessageBoxResult: The message box was closed via the "Yes" button. |
MESSAGE_TYPE_ERROR (Read-only)
Public Property MESSAGE_TYPE_ERROR As Long |
Belongs to GuiMessageBoxType; The message box shows the respective icon for an error message. |
MESSAGE_TYPE_INFORMATION (Read-only)
Public Property MESSAGE_TYPE_INFORMATION As Long |
Belongs to GuiMessageBoxType; The message box shows the respective icon for an information message. |
MESSAGE_TYPE_PLAIN (Read-only)
Public Property MESSAGE_TYPE_PLAIN As Long |
Belongs to GuiMessageBoxType; The message box shows no icon. |
MESSAGE_TYPE_QUESTION (Read-only)
Public Property MESSAGE_TYPE_QUESTION As Long |
Belongs to GuiMessageBoxType; The message box shows the respective icon for a question. |
MESSAGE_TYPE_WARNING (Read-only)
Public Property MESSAGE_TYPE_WARNING As Long |
Belongs to GuiMessageBoxType; The message box shows the respective icon for a warning message. |