Board index » delphi » Varchar(255) vs Varchar(256) and TStrigField vs TMemoField

Varchar(255) vs Varchar(256) and TStrigField vs TMemoField

I use Delphi4 and IB5.

if field is Varchar(255) it appears in the DataSet as TStringField,
if field is Varchar(256) or large it appears in the DataSet as TMemoField
and in the Grid view as (MEMO),
Can I make Varchar(500) field view in the Grid?

Thanks,

Gela Pavliashvili
gela...@usa.net

 

Re:Varchar(255) vs Varchar(256) and TStrigField vs TMemoField


You'll need to use a grid replacement component that lets you view memos in
a grid.  Or, you can trim the size of the result field to 255 chars using a
UDF.

This is really a DBGrid/TField issue and not an IBX issue.

Dan

Quote
Gela Pavliashvili <g...@parliament.ge> wrote in message

news:7up3a7$g4l12@forums.borland.com...
Quote
> I use Delphi4 and IB5.

> if field is Varchar(255) it appears in the DataSet as TStringField,
> if field is Varchar(256) or large it appears in the DataSet as TMemoField
> and in the Grid view as (MEMO),
> Can I make Varchar(500) field view in the Grid?

> Thanks,

> Gela Pavliashvili
> gela...@usa.net

Other Threads