Jump to content
Software FX Community

Adding a Constant line without label crashes app


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...