Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread IN with nothing between the brackets
Wed, Feb 6 2013 4:43 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

Is there a possibility that IN could return FALSE when the condition between the brackets is empty rather then generating an error?

I have a number of  statements like

 Contacts.Filter := '_ID IN (' + Restrict.FieldByName(_ContactList).AsString + ')';

I'm wrapping them in a test to see if there's anything there.

Failing that could we have a more explicit error message please? Maybe Empty IN test rather than

ElevateDB Error #700 An error was found in the statement at line 6 and column 9 (Expected expression but instead found ))


Roy Lambert
Wed, Feb 6 2013 3:58 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Is there a possibility that IN could return FALSE when the condition
between the brackets is empty rather then generating an error? >>

Sure, I can throw that in there.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Feb 7 2013 7:21 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


><< Is there a possibility that IN could return FALSE when the condition
>between the brackets is empty rather then generating an error? >>
>
>Sure, I can throw that in there.

Brill, as long as it isn't going to break ooodles of code.

Roy Lambert
Thu, Feb 14 2013 10:52 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Brill, as long as it isn't going to break ooodles of code. >>

Nah, simple fix.

Tim Young
Elevate Software
www.elevatesoft.com
Image