Modul DB i ustawianie pola

Autor: Piotr Rezmer <piotr.rezmer_bez_spamu_at_ens.net.pl>
Data: Thu 17 Feb 2011 - 11:27:48 MET
Message-ID: <ijit78$9ta$1@inews.gazeta.pl>
Content-Type: text/plain; charset=UTF-8; format=flowed

Witam,

Nadal ślęczę nad problemem z TClientDataset.appendRecord. Przeglądając
kod źródłowy modułu DB znalazłem:

procedure TField.SetAsString(const Value: string);
begin
   raise AccessError('String'); { Do not localize }
end;

procedure TField.SetAsWideString(const Value: UnicodeString);
begin
   SetAsString(Value); // fall down to SetAsString;
end;

procedure TField.SetAsAnsiString(const Value: AnsiString);
begin
   SetAsString(string(Value));
end;

procedure TField.SetAsBytes(const Value: TBytes);
begin
   SetData(@Value, False);
end;

Po co zgłaszany jest wyjątek AccessError przy ustawianiu wartości pola
typu tekstowego?

-- 
pozdrawiam
Piotr
XLR250&bmw_f650_dakar
Received on Thu Feb 17 11:30:02 2011

To archiwum zostało wygenerowane przez hypermail 2.1.8 : Thu 17 Feb 2011 - 11:51:03 MET