Table of Contents

Enum PortDiagnosticKind

Namespace
RDCore.Forms.Porting
Assembly
RDCore.Forms.dll

What a PortDiagnostic reports. Each kind's name is the stable name of the diagnostic, and the key of its message.

public enum PortDiagnosticKind

Fields

AcceleratorAssignment = 0

An assignment to MSForms' Accelerator. RDForms writes an access key as a & before its letter in the Caption, and the code port cannot place it without the caption.

ComputedProgId = 3

A ProgID given to Controls.Add by an expression that is not a literal, so the code port cannot rewrite it.

CoordinatesConverted = 10

A handler the code port gave two first lines converting X and Y back to the legacy unit.

ExitPortedToValidate = 7

An MSForms Exit handler, ported to Validate. RDForms raises Validate only when the control that takes the focus has CausesValidation set to True, the default.

ExpressionNotConvertible = 2

A value of a member whose values convert, given by an expression that is neither a literal nor a constant, so the code port cannot convert it.

FindWindowThunderDFrame = 12

A call of user32's FindWindow given the literal window class "ThunderDFrame", the FormWindowClass of a UserForm. A ported form is an RDForms window, which has no such class, so the call finds no window. Code that finds the window to set its icon sets the form's Icon property instead.

LateBoundMember = 5

A late-bound call, on a variable declared As Object or As Variant, to a member the port renames or whose values or unit it converts. The code port cannot tell which control the call is on.

ScrollBarReference = 8

A reference to MSForms' ScrollBar that the code port cannot tie to one control, so it is typed RDForms.Control: a ScrollBar ports to RDForms.HScrollBar or RDForms.VScrollBar by its orientation.

ScrollBarTypeNameChanged = 11

A TypeName or TypeOf ... Is comparison on a control ported from MSForms' ScrollBar: the control is an RDForms.HScrollBar or an RDForms.VScrollBar, so TypeName(x) = "ScrollBar" is False after the port.

UnitWrapped = 9

An expression the code port wrapped in a call of the RDForms.Units module, such as FromTwips(...), to keep it in its legacy unit.

UnknownProgId = 4

A literal ProgID given to Controls.Add that names no class the port map has.

UnresolvedDataSource = 6

A ControlSource or RowSource string that nothing resolves, such as a worksheet range.

ValueNotConvertible = 1

A legacy value that is none of the documented values of its member, so it has no RDForms value. It is what Diagnostic reports.