Board index » delphi » Char Fields Longer Than 255

Char Fields Longer Than 255

How can i work with Char fields longer than 255 in MS-SQL7
within Delphi ???
 

Re:Char Fields Longer Than 255


Instead of using
Var
    MyString:String;
use
Var
    MyString:WideString;
I hope this helps
Quote
Cem KOKTEN <exsa...@future.net.tr> wrote in message

news:7vomm8$69q1@forums.borland.com...
Quote
> How can i work with Char fields longer than 255 in MS-SQL7
> within Delphi ???

Re:Char Fields Longer Than 255


I would consider switching to a BLOB field type.
Assuming you're using 32-bit Delphi (with huge string support) you can
assign the text to a string by using the field's .AsString method.

BLOBs have their drawbacks too, however...

Quote
Cem KOKTEN <exsa...@future.net.tr> wrote in message

news:7vomm8$69q1@forums.borland.com...
Quote
> How can i work with Char fields longer than 255 in MS-SQL7
> within Delphi ???

Other Threads