[Lazarus] Procedural variables as methods
Vojtěch Čihák
vojtech.cihak at atlas.cz
Mon Jul 29 01:07:35 CEST 2013
Yes, you need to add braces.
a := Language.ClanName();
Vojtěch
______________________________________________________________
> Od: "Timothy Groves" <the.tail.kinker at gmail.com>
> Komu: Lazarus mailing list <lazarus at lists.lazarus.freepascal.org>
> 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;
--
More information about the Lazarus
mailing list