Page 1 of 1

UniDAC with Interbase and Unicode TMemoField

Posted: Fri 24 Dec 2010 22:50
by rhettp
Hi,

I have narrowed down an issue with Interbase and UniDAC with Unicode based Memo fields.

I'm having a problem saving to this type of field with any Unicode data - using Params. I think the problem is evident however with Unidac when creating TFields at Design Time. The Firebird 2.5 Unicode Blob Field is being created as a TMemoField and not a TWideMemoField. My thought is because UniDAC doesn't seem to support the EnableMemos feature that IBDac does. Does anyone know of a way around this?

Thanks,

Rhett

Posted: Mon 27 Dec 2010 15:10
by AndreyZ
Please do not duplicate topics. We have answered you here: http://www.devart.com/forums/viewtopic.php?t=19851

Posted: Mon 27 Dec 2010 16:00
by rhettp
Hi, sorry - wasn't trying to duplicate issues. I'm sure these 2 are related, but this was more a design time TField Creation issue. So will this same fix for the link also fix this at Design Time?

Thanks,

Rhett Price

Posted: Mon 27 Dec 2010 16:31
by AndreyZ
You should set the UseUnicode specific option to True in the following way:

Code: Select all

UniConnection.SpecificOptions.Values['UseUnicode'] := 'True';
In this case UniDAC creates TWideMemoField fields for BLOB fields with subtype 1. Otherwise UniDAC creates TMemoField fields.