Skip to content

Fix: correct __Usual boxing#1982

Open
Irwin1985 wants to merge 1 commit into
devfrom
fix/vfp-property-usual-boxing
Open

Fix: correct __Usual boxing#1982
Irwin1985 wants to merge 1 commit into
devfrom
fix/vfp-property-usual-boxing

Conversation

@Irwin1985

Copy link
Copy Markdown
Contributor

When setting an instance variable on a VFP DEFINE CLASS object ej: p.firstName = "John" and ArgumentException was thrown at runtime.

> System.String cannot be converted to XSharp.__Usual

Fix

Appy OOPHelpers.ValueConvert(uValue, targetType) before each SetValue Call in PropertyContainer.prg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant