CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TIWCGJQComboBoxEx causes AV during lookup

by Alexander Bulei » 19 Dec 2014 10:43

Hi Daniel,

Another thing, you are comparing two different functions with different return values:

Code: Select all
IndexOf - return Integer, -1 when not found (check delphi documentation)


and

Code: Select all
ItemsByValue - return item, nil when not found


So obvious, when you access the nil object you will get AV...

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by dfields » 23 Dec 2014 21:29

Guys,

It was late when I submitted the question. I overlooked an obvious problem. I guess I was looking for a simple way to test for the existence of an item in the list. Nothing I wrote was intended to be offensive or accusatory.

I certainly do not feel that I deserve comments like this: "and we don't care how other controls work, because we know that we are doing right". Why on earth would you say something like that to a customer?! I enjoy using your products and promote them any time I feel someone could benefit from them. I do not feel anything I said warranted such a harsh response.
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14

by ScottWGast » 23 Dec 2014 21:39

Daniel,

Yeah... I kinda felt like it was a bit harsh too; I chalked the comment up to language differences... hoping that it was not intended to offend.

Merry Christmas!

Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Jorge Sousa » 24 Dec 2014 10:56

Hi Daniel

Sorry, I didn't mean to offend anyone.

This was the answer to

What? Are you saying that the designed behavior is to generate the error when searching for a value that is not in the list? I expect that it would it to return -1 or nil, but the error is completely unexpected.

When I use a normal ComboBox I can use a similar call without getting the error. If there is not a match I get -1 without an error.


I thought you're saying that the normal ComboBox is the model to follow, sorry again.

Merry Christmas
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by dfields » 31 Dec 2014 21:58

No worries. It was just a simple misunderstanding.
Happy New Year!
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14

by Jorge Sousa » 05 Jan 2015 17:22

Happy New Year Daniel, and sorry for the misunderstanding
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 54 guests

Contact Us.