Page 1 of 1
DefaultExpression of booleanfields
Posted: Fri 23 May 2008 09:41
by tonisanta
Setting the DefaultExpression of bit-fields to 'True' raizes an error since SDAC version 4.35.1.16, it must be set to '1'; with previous SDAC it worked with 'True', too.
with regards, Toni
Posted: Fri 23 May 2008 12:03
by Antaeus
Quote the True constant assigning it to DefaultExpression:
Code: Select all
MSQuery.FieldByName('c_bit').DefaultExpression := '''True''';
Posted: Fri 23 May 2008 12:47
by Antaeus
You can return the behavior of previous SDAC by changing value of the DefaultExpressionOldBehavior variable to True somewhere in your program. This variable is declared in the MemDS unit.