Jump to content
Software FX Community

Adding a Constant line without label crashes app


User (Legacy)

Recommended Posts

I am using Chartfx 5.0.10.4

Select values but don't add text to txtLabel and then click "Add"

Dan Reber

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:Uu5CuIlmDHA.1244@WEBSERVER1...

> Please attach the code that reproduces the problem along with the version

> and build you are testing with.

>

> We have tried simply creating a constant line as described in the help

files

> and experienced no problems whatsoever.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

The add button that was in the example project that I had attached to my

last post.

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:nG%236zYmmDHA.1264@WEBSERVER1...

> What "Add" ? Which Dialog are you referring to ? Can you please give us

the

> complete details. I'm lost here, at first I thought you were creating the

> constant lines using the API, now I don't know what you're doing.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

I guess that I didn't make myself clear.

1. Run the project.

2. Set all of the settings (except for the label) for the constant line that

is in the frame.

3. Click "Add".

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:nG%236zYmmDHA.1264@WEBSERVER1...

> What "Add" ? Which Dialog are you referring to ? Can you please give us

the

> complete details. I'm lost here, at first I thought you were creating the

> constant lines using the API, now I don't know what you're doing.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

The problem is that you are passing null as the value. This is not

supported, you need to pass a valid string. The following code will do the

trick:

ChartFX1.ConstantLine(Index).Label = IIf(IsNull(txtLabel.Text), "",

txtLabel.Text)

--

FP

Software FX, Inc.

PS: Sorry about the last post, I didn't realize your posting had an

attachment.

Link to comment
Share on other sites

I am doing something similar now.  But I still don't think that it should

cause the app to crash ;-)

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:baf16onmDHA.1244@WEBSERVER1...

> The problem is that you are passing null as the value. This is not

> supported, you need to pass a valid string. The following code will do the

> trick:

>

> ChartFX1.ConstantLine(Index).Label = IIf(IsNull(txtLabel.Text), "",

> txtLabel.Text)

>

> --

> FP

> Software FX, Inc.

>

> PS: Sorry about the last post, I didn't realize your posting had an

> attachment.

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...