Consultor Eletrônico



Kbase P140275: Property of .Net object not changed
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   30/01/2009
Status: Unverified

SYMPTOM(s):

Property of .Net object is not changed when a value is assigned

HEIGHT property is not changed when using the following construct:
myObjectRef:SIZE:HEIGHT = 80.

Visual Designer does not allow definition of translation attributes for properties of .Net UI controls.

FACT(s) (Environment):

OpenEdge Language Category: .NET Bridge
OpenEdge 10.2x
Windows

CAUSE:

This is the expected and documented behavior

FIX:

The above mentioned statement changes a local copy of the property as it is passed by value.In order to set new property (or data member) values on a value type property (like Size) that, itself, references a value type object, you must assign a new instance of the object to the property. For example:


myObjectRef:SIZE = NEW System.Drawing.Size( 80, 40 ).