Bug Report T222967
Visible to All Users

Functions that perform value comparison operations consider empty cells neither a zero nor an empty string

created 10 years ago

Hi,
 We are using DevExpress VCL components V14.2.3 and Delphi XE2 ide.
The question is about the SpreadSheet component.

We want to reproduce Excel behavior when using IF function on an empty cell :

=IF(ResultMois!B3=0;"";INDIRECT("Divers!O"&WEEKDAY(ResultMois!B3)))

Using Excel an empty cell or containing 0 will return TRUE
Using DevExpress SpreadSheet it will return TRUE if the cell contains 0, but FALSE when the cell is empty.

We cannot change the formula because it’s legacy code, and the SpreadSheets are shared through multiple existing applications.

So, how can we obtain the same behavior as Excel ?

Xavier PATOIT
Software Engineer
Bally Technologies

Show previous comments (4)

    Ok Mikhail, thanks
    Xavier

    DevExpress Support Team 10 years ago

      Xavier, we've fixed this behavior with an empty cell, however, this fix is very complex (there are changes in a lot of units) and we cannot provide it to you. I however believe we will release the new version of our controls (VCL 14.2.5) early in April (in one or two weeks).

      Also, I need to note that the INDIRECT function is not supported by our new SpreadSheet and I've created a separate suggestion about implementing it in future versions - T224612: TdxSpreadSheet - implement an INDIRECT function like in Excel.

        Excellent Mikhail,
        For sure we are really interessed in having your best suggestions for INDIRECT implementation.
        Xavier

        Answers approved by DevExpress Support

        created 10 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.