Re: [fpc-pascal] Does TBufDataSet support Blob or memo field?

2014-01-28 Thread LacaK
I checked my code again and I found I did post after I check the blob/memo field values. I think it is probably a bug, rather than a feature as all fields should be the same: values get updated even without calling post. Yes, I agree. As I wrote I will look at it ... if I find smart

Re: [fpc-pascal] Does TBufDataSet support Blob or memo field?

2014-01-16 Thread Dennis Poon
Dennis Poon wrote: All the other usual types (e.g. integer, string, datetime) work except ftMemo and ftblob. Yes, I have used POST Dennis LacaK wrote: AFAIR this is so. (we can call it bug ;-)) Data are not there until you Post record. After Post you will see data there, right? -Laco.

Re: [fpc-pascal] Does TBufDataSet support Blob or memo field?

2014-01-16 Thread LacaK
I checked my code again and I found I did post after I check the blob/memo field values. I think it is probably a bug, rather than a feature as all fields should be the same: values get updated even without calling post. Yes, I agree. As I wrote I will look at it ... if I find smart

[fpc-pascal] Does TBufDataSet support Blob or memo field?

2014-01-13 Thread Dennis Poon
I created a TMemoField in TBufDataSet but no matter I do: 1) Field.asString := 'some value' or 2) Field.LoadFromStream(someStream). Afterwards, this F.AsString always returns '' and F.LoadFromStream(someStream) always has a 0 BlobSize afterwards. Anyone has similar experience? Dennis

Re: [fpc-pascal] Does TBufDataSet support Blob or memo field?

2014-01-13 Thread Dennis Poon
All the other usual types (e.g. integer, string, datetime) work except ftMemo and ftblob. Yes, I have used POST Dennis LacaK wrote: AFAIR this is so. (we can call it bug ;-)) Data are not there until you Post record. After Post you will see data there, right? -Laco.

Re: [fpc-pascal] Does TBufDataSet support Blob or memo field?

2014-01-13 Thread LacaK
All the other usual types (e.g. integer, string, datetime) work Yes it is expected behaviorexcept ftMemo and ftblob. Yes it is not consistent and from my POV it is bug.I will look (next week or two) if it can be fixed, but I have doubts, that it will not be so easy