Notice that the generated code doesn't use the high level SqlServerMethod component, but rather calls directly into the low-level dbExpress implementation objects, like the TDBXCommand class150.

Having this proxy class available, the client program can now call the server method in a more language-friendly way, although we do need to create an instance of the proxy class (or create one and keep it around). This code does exactly the same as the previous code based on the SqlServerMethod component:

procedure TFormFirst3Tier2009Client.btnHelloClick(

Sender: TObject); begi n with TDSFirst3TierServerModuleClient.Create(

SQLConnection1.DBXConnection) do try

ShowMessage (GetHello); fi nal ly Free;

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