User (Legacy) Posted May 23, 2003 Report Share Posted May 23, 2003 After having set a point: Chart1.Point(0, 1) = sillyPointAttributes How can one restore the Point to the default attributes for the series? Bob Hall Link to comment Share on other sites More sharing options...
Software FX Posted May 23, 2003 Report Share Posted May 23, 2003 Chart1.Point(0, 1) = null Chart1.Refresh -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 23, 2003 Author Report Share Posted May 23, 2003 How is "null" defined? I am using VB, i attempted the following cast, but it failed, CType(0, PointAttributes) I have tried to assign Chart1.Point(0, 1)= Nothing but that doesn't work either. Bob Hall "SoftwareFX Support" <support@softwarefx.com> wrote in message news:LDCe%23cUIDHA.2172@webserver1.softwarefx.com... > Chart1.Point(0, 1) = null > Chart1.Refresh > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 23, 2003 Author Report Share Posted May 23, 2003 ahh... If i instantiate a PointAttributes and assign it to nothing it seems to work. Dim pa As New PointAttributes() Chart1.Point(1, i) = pa Bob Hall "Bob Hall" <roqe3xx02@sneakemail.com> wrote in message news:P2VRWzWIDHA.1532@webserver1.softwarefx.com... > How is "null" defined? > > I am using VB, i attempted the following cast, but it failed, > CType(0, PointAttributes) > > I have tried to assign > Chart1.Point(0, 1)= Nothing > but that doesn't work either. > > > Bob Hall > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:LDCe%23cUIDHA.2172@webserver1.softwarefx.com... > > Chart1.Point(0, 1) = null > > Chart1.Refresh > > > > -- > > FP > > Software FX, Inc. > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted May 24, 2003 Report Share Posted May 24, 2003 I believe "null" (C# syntax) is equivalent to "Nothing" in VB.NET -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 25, 2003 Author Report Share Posted May 25, 2003 I had assumed 'Nothing' would work too, but alas it does not, it fails with a runtime: "An unhandled exception of type 'System.NullReferenceException' occurred in chartfx.dll Additional information: Object reference not set to an instance of an object." "Software FX Support" <support@softwarefx.com> wrote in message news:SVC4cXhIDHA.3100@webserver1.softwarefx.com... > I believe "null" (C# syntax) is equivalent to "Nothing" in VB.NET > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted May 25, 2003 Report Share Posted May 25, 2003 Make sure you are using the latest Chart FX Service pack, a bug related to this was fixed a while ago. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.