Delphi Clinic C++Builder Gate Training & Consultancy Delphi Notes Weblog Dr.Bob's Webshop
Bob Swart (aka Dr.Bob) - Medical Officer Dr.Bob's Delphi Clinics
 BobAdapt 1.0 - WebSnap Custom Adapters
See Also: Dr.Bob's SwarTools for Delphi, Kylix, C++Builder and C#

WebSnap Custom Adapter Source Generator
The use of the on-line version of BobAdapt (my WebSnap custom adapter source generator) is really simple: just enter the name of your unit filename, the name of your custom WebSnap adapter (it will get a TB42 prefix), and finally up to 9 Adapter Field names (you also get one Adapter Action).
The Adapter Fields will implement the GetValue in such a way that they retain their value (useful when entering data, but raising an exception in the OnValidate event handler). This prevents the irritating clearing of all fields (which may be useful in the LoginFormAdapter, but not in a CustomerInfoAdapter).

Note: Make sure to enter proper identifiers (starting with a letter or underscore, etc.) or the resulting code won't compile!

Unit Filename:B42Adapt.pas
Adapter FieldName #1:
Adapter FieldName #2:
Adapter FieldName #3:
Adapter FieldName #4:
Adapter FieldName #5:
Adapter FieldName #6:
Adapter FieldName #7:
Adapter FieldName #8:
Adapter FieldName #9:

For more information and details about the resulting custom Adapter source code, I can recommend my "WebSnap" Clinic, which also shows how to get more out of your WebSnap applications by creating powerful custom adapters (using the GUI version of BobAdapt for Delphi 6-7 or Kylix 3).

I have installed and tested the resulting WebSnap Adapters with Delphi 6-7 as well as Kylix 2-3, and they seem to work fine. However, please understand that the resulting source code is provided as-is, without warranty of any kind.
And as always, I welcome all feedback and comments (by e-mail). Thanks in advance!

BobAdapt and the generated source code is freeware, provided as-is, but use at your own risk (I cannot be held responsible for anything that goes wrong while using these components), but I'm open to feedback, suggestions and other comments by e-mail to
This webpage © 2001-2017 by Bob Swart (aka Dr.Bob - All Rights Reserved.