Yes, you need to add braces.
 
 a := Language.ClanName(); 
 
Vojtěch 
______________________________________________________________
> Od: "Timothy Groves" <[email protected]>
> Komu: Lazarus mailing list <[email protected]>
> Datum: 28.07.2013 23:28
> Předmět: [Lazarus] Procedural variables as methods

Is there something I have to add to the call to make it work?  Some code 
follows.

(in tLanguage method)
       MaleName := @SaxonMale;
       FemaleName := @SaxonFemale;
       ClanName := @SaxonFamily;
       PlaceName := @SaxonPlace;

(in main code)
         Language := tLanguage.Create;
         a := Language.ClanName;


--

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to