Hi Robert,

> function TSampleClass<T>.GetDataName: string;

Note that you can also do this with class methods... (so you don't need 
an instance of TSampleClass to call the method GetDataName).

>       If on the other hand, I created an instance of the class and gave
> 'T' a value of '0' or 'nil', depending upon the type of data I wish to pass
> it, then I could write a procedure that first sets the Value/Type of 'T' to
> any I want to at the moment, and then call the three class functions from
> within, it would be possible for me to reset 'T' to a different Value/Type
> each time I call this procedure!  THAT I can see as being very useful!  

See my section on Generic (class) Methods in the Delphi 2009 Development 
Essentials courseware manual or with a few examples on my website at 
http://www.drbob42.com/examines/examinA4.htm

> from "Robert Meek" dba "Tangentals Design"

Groetjes,
           Bob Swart

-- 
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
CodeGear Technology Partner -- CodeGear RAD Studio Reseller (BeNeLux)
Delphi Win32 & .NET books on Lulu.com: http://stores.lulu.com/drbob42
Personal courseware + e-mail support http://www.ebob42.com/courseware
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to