- This topic has 2 replies, 2 voices, and was last updated 2023-08-07 at 9:24 am by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Konopka Signature VCL Controls (formerly Raize Components) › QuickCompare
Hi
I have a dbgrid that displays records of events and has a field called ‘Venue’. That field can only have 2 values ‘HOME’ and ‘AWAY’.
I’d like to use QuickCompare to highlight all the records that are at ‘HOME’ .
So I Set FieldName as ‘Venue’, under FieldValue I set Type to ‘String’ but it immediately reverts to <unknown>.
If I set FieldValue to ‘HOME’ I immediately get en error msg ‘Could not convert variamt of type (String) into type (Double). I can’t them remove this value as the error is persistent and eventually I have to close the form or (more often) Delphi.
As QuickCompare has a Type setting for various field types (and my field is a String), how can I use a value of ‘HOME’ or ‘AWAY’ to do a compare?
Hi Barry,
I see the same behavior. I think the issue is in the built-in Variant property editor. In looking at the code for the QuickCompare functionality, there does not appear to be any assumptions that the FieldValue has to be a number.
Have you tried setting the FieldValue at runtime in the FormCreate event handler. I wonder if that would work properly for you.
Ray
Ray,
Setting them in the form activate works fine. Thanks for the tip.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)