MSRDC, COM interface constants for VB.Net / VBScript

MSRDC - interface constants

     This page contains simple VBA include for the MSRDC COM library.

library parameters

File NameWINDOWS\system32\MSRDC20.OCX
Guid{F6125AB1-8AB1-11CE-A77F-08002B2F4E98}
Enums12

BOFActionConstants

enum, 2 members.
  'BOFAction Constants
Public Enum BOFActionConstants

  'Move to first row
  rdMoveFirst = 0  '&H0

  'Move to beginning of file
  rdBOF = 1  '&H1
End Enum

EOFActionConstants

enum, 3 members.
  'EOFAction Constants
Public Enum EOFActionConstants

  'Move to last row
  rdMoveLast = 0  '&H0

  'Move to end of file
  rdEOF = 1  '&H1

  'Add a new row to end of file
  rdAddNew = 2  '&H2
End Enum

AppearanceConstants

enum, 2 members.
  'Appearance Constants
Public Enum AppearanceConstants

  'Flat
  rdFlatBevel = 0  '&H0

  '3D
  rd3DBevel = 1  '&H1
End Enum

PromptConstants

enum, 4 members.
  'Prompt Constants
Public Enum PromptConstants

  'Prompt
  rdDriverPrompt = 0  '&H0

  'No Prompt
  rdDriverNoPrompt = 1  '&H1

  'Complete
  rdDriverComplete = 2  '&H2

  'Complete Required
  rdDriverCompleteRequired = 3  '&H3
End Enum

CursorDriverConstants

enum, 4 members.
  'CursorDriver Constants
Public Enum CursorDriverConstants

  'ODBC cursor if needed
  rdUseIfNeeded = 0  '&H0

  'ODBC cursor
  rdUseOdbc = 1  '&H1

  'Server-side cursor
  rdUseServer = 2  '&H2

  'Batch Client-side cursor
  rdUseClientBatch = 3  '&H3
End Enum

EditModeConstants

enum, 3 members.
  'EditMode Constants
Public Enum EditModeConstants

  'No editing operation is in progress.
  rdEditNone = 0  '&H0

  'Edit method has been invoked, and the current record is in the copy buffer.
  rdEditInProgress = 1  '&H1

  'AddNew method has been invoked, and the current record in the copy buffer is a new record that hasn't been saved in the database.
  rdEditAdd = 2  '&H2
End Enum

LockTypeConstants

enum, 5 members.
  'LockType Constants
Public Enum LockTypeConstants

  'Cursor is read-only
  rdConcurReadOnly = 1  '&H1

  'Pessimistic concurrency
  rdConcurLock = 2  '&H2

  'Optimistic concurrency
  rdConcurRowver = 3  '&H3

  'Optimistic concurrency based on row values
  rdConcurValues = 4  '&H4

  'Use Optimistic Batch Cursors
  rdConcurBatch = 5  '&H5
End Enum

OptionConstants

enum, 2 members.
  'Options Constants
Public Enum OptionConstants

  'Async Enabled
  rdAsyncEnable = 32  '&H20

  'Execute Direct
  rdExecDirect = 64  '&H40
End Enum

ResultsetTypeConstants

enum, 2 members.
  'Resultset Type Constants
Public Enum ResultsetTypeConstants

  'Create a Keyset cursor
  rdOpenKeyset = 1  '&H1

  'Create a Static cursor
  rdOpenStatic = 3  '&H3
End Enum

CancelDisplayConstants

enum, 2 members.
  'CancelDisplay Constants
Public Enum CancelDisplayConstants

  'Display error message
  rdDataErrDisplay = 0  '&H0

  'Continue
  rdDataErrContinue = 1  '&H1
End Enum

ValidateActionConstants

enum, 21 members.
  'Action Constants
Public Enum ValidateActionConstants

  'Cancel operation when Sub exits (Validate event).
  rdActionCancel = 0  '&H0

  'MoveFirst method (Validate event).
  rdActionMoveFirst = 1  '&H1

  'MovePrevious method (Validate event).
  rdActionMovePrevious = 2  '&H2

  'MoveNext method (Validate event).
  rdActionMoveNext = 3  '&H3

  'MoveLast method (Validate event).
  rdActionMoveLast = 4  '&H4

  'AddNew method (Validate Event).
  rdActionAddNew = 5  '&H5

  'Update operation -- not update record (Validate event).
  rdActionUpdate = 6  '&H6

  'Delete method (Validate event).
  rdActionDelete = 7  '&H7

  'Find method (Validate event).
  rdActionFind = 8  '&H8

  'The Bookmark property has been set.
  rdActionBookmark = 9  '&H9

  'Close method (Validate event).
  rdActionClose = 10  '&HA

  'The form is being unloaded.
  rdActionUnload = 11  '&HB

  'Update operation for AddNew (Validate event).
  rdActionUpdateAddNew = 12  '&HC

  'Update operation for Edit (Validate event).
  rdActionUpdateModified = 13  '&HD

  'Refresh method (Validate event).
  rdActionRefresh = 14  '&HE

  'CancelUpdate method (Validate event).
  rdActionCancelUpdate = 15  '&HF

  'BeginTransaction Method
  rdActionBeginTransact = 16  '&H10

  'CommitTransaction Method
  rdActionCommitTransact = 17  '&H11

  'RollbackTransaction Method
  rdActionRollbackTransact = 18  '&H12

  'NewParameters
  rdActionNewParameters = 19  '&H13

  'New SQL statement
  rdActionNewSQL = 20  '&H14
End Enum

ErrorConstant

enum, 18 members.
  'Error Constants
Public Enum ErrorConstant

  'An unexpected internal error has occurred.
  ERRRDC_UNEXPECTEDINTERNAL = 24010  '&H5DCA

  'An error has occurred with no information available.
  ERRRDC_NOINFO = 24011  '&H5DCB

  'An error has occurred.
Unable to retrieve error information.
  ERRRDC_ERRORINFO = 24012  '&H5DCC

  'A control cancelled the operation or
an unexpected internal error has occurred.
  ERRRDC_CONTROLINTERNAL = 24013  '&H5DCD

  'Could not refresh controls.
  ERRRDC_CONTROLREFRESH = 24014  '&H5DCE

  'Invalid property value.
  ERRRDC_INVALIDPROPERTY = 24015  '&H5DCF

  'Invalid object.
  ERRRDC_INVALIDOBJECT = 24016  '&H5DD0

  'Method cannot be called in RDC's current state.
  ERRRDC_METHOD = 24017  '&H5DD1

  'One or more of the arguments is invalid.
  ERRRDC_INVALIDARGUMENT = 24018  '&H5DD2

  'Resultset is empty.
  ERRRDC_RESULTEMPTY = 24019  '&H5DD3

  'Out of memory
  ERRRDC_MEMORY = 24020  '&H5DD4

  'Resultset not available.
  ERRRDC_RESULTUNAVAILABLE = 24021  '&H5DD5

  'The connection is not open.
  ERRRDC_NOCONNECTION = 24022  '&H5DD6

  'Property cannot be set in RDC's current state.
  ERRRDC_SETPROPERTY = 24023  '&H5DD7

  'Property not available in RDC's current state.
  ERRRDC_AVAILPROPERTY = 24024  '&H5DD8

  'Type mismatch
  ERRRDC_TYPE = 24025  '&H5DD9

  'Cannot connect to RemoteData Objects.
  ERRRDC_NORDO = 24026  '&H5DDA

  'Data Type Conversion Error
  ERRRDC_DATACONV = 24027  '&H5DDB
End Enum
WUtils.com