Jump to content
Software FX Community

resetting default after setting point to PointAttributes


User (Legacy)

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...