dbTalk Databases Forums  

Text datatype as Memo in Delphi

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Text datatype as Memo in Delphi in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fernando Flores Prior
 
Posts: n/a

Default Text datatype as Memo in Delphi - 07-01-2003 , 05:57 PM







Hi all,

Is there a way to "cast" the text datatype fields in order to
not be interpreted as Memo fields in some Delphi data-aware
components? specifically DbGrids ? Should I tweak the
ODBC driver config ? or it is something related to the
client side programming tool? (delphi in this case).

regards

-Fernando



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
  #2  
Old   
btober@seaworthysys.com
 
Posts: n/a

Default Re: Text datatype as Memo in Delphi - 07-02-2003 , 04:08 AM






Quote:
On Wednesday 02 July 2003 00:57, Fernando Flores Prior wrote:
Is there a way to "cast" the text datatype fields in order to
not be interpreted as Memo fields in some Delphi data-aware
components? specifically DbGrids ? Should I tweak the
ODBC driver config ? or it is something related to the
client side programming tool? (delphi in this case).
If I remember right, the thing is not in "casting" Memo to some other
data type, but to force controls to show contest of "Memo". I forgot
how I did it(it was before 2 Years).
And Yes, You are right - this has nothing to do with PostgreSQL.

I think anything longer than some number, either 256 or 512, is
interpreted as memo datatype, in which case you could truncate the excess
part of the field, and then if necessary cast as varchar.

~Berend Tober




---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.