Initialization

DefaultFieldClasses [ftString] := TMyStringField;

Again there is a button asking for field class information, but the effect of this code is clearly visible in the DBGrid:

■^jj Custom Fie Ids

Open

Get Field Definition Get Field Class

CustNo

Company

Addrl

1221

Kauai Dive Shoppe is not Unicode

4-976 Sugarloaf Hwy is not Unicode

1231

Unisco is not Unicode

PO Box Z-547 is not Unicode

-

1351

Sight Diver is not Unicode

1 Neptune Lane is not Unicode

1354

Cayman Divers World Unlimited is not Unico

PO Box 541 is not Unicode

1356

Tom Sawyer Diving Centre is not Unicode

632-1 Third Frydenhoj is not Unicode

1380

Blue Jack Aqua Center is not Unicode

23-738 Paddington Lane is not Unicode

£

1384

VIP Divers Club is not Unicode

32 Main St. is not Unicode

1510

Ocean Paradise is not Unicode

PO Box 8745 is not Unicode

1513

Fantastique Aquatica is not Unicode

Z32 999 #12A-77 A.A, is not Unicode

1551

Marmot Divers Club is not Unicode

872 Queen St. is not Unicode

1560

The Depth Charge is not Unicode

15243 Underwater Fwy. is not Unicode

1563

Blue Sports is not Unicode

203 12th Ave. Box 746 is not Unicode

1624

Makai SCUBA Club is not Unicode

PO Box 8534 is not Unicode

Q

OentDataSetLFfekfell] TOStnng: TMyStringField

In more complex situations you can override the dataset class and redefine the GetFieldClass virtual method142. Again, by inheriting from a custom dataset class you can customize the support classes specifically, while the approach I've used triggers the change for each dataset of the current application, which is something you might want or not.

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment