We would like to override the databaseField.stringValue function so
that it always returns a string with the encoding we want. The
database we are using (Frontbase) stores everything as UTF8, but we
want to display it as MacRoman, so we have to say theRecordSet.field
(fieldName).stringValue.defineEncoding(encodings.UTF8).convertEncoding
(encodings.MacRoman).
We would like to simply define a subclass that will simply return
stringValues with the correct encoding, since we never had a problem
until a customer wanted to use french accents in everything.
Since a database.SQLSelect returns a RecordSet and the
RecordSet.Field function returns a DatabaseField and it's the
DatabaseField.StringValue function we want to override, how would we
go about this?
I tried subclassing Database and overRiding SQLSelect to return a
subclass of RecordSet, but the compiler complains that it is
returning a different class then the overridden method.
Any help would be appreciated.
gary hayenga
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>