InheritsFrom (Instance)
<source lang='delphi'>function InheritsFrom(const iClassName:string):boolean;</source>
Cette fonction teste si un objet appartient à la hiérarchie d'une classe métier.
Result | True si l'objet hérite de la classe |
iClassName | Un nom de classe métier |
Exemple <source lang='delphi'> {Function GetEstEntree(aProduitCommercial:TProduitCommercial):Boolean;} begin
Result := Assigned(aProduitCommercial) and aProduitCommercial.InheritsFrom('TProduitAchat');
end; </source>
Voir aussi
{{#if:Objets métiers (tech)|
{{#if:Objets métiers (tech)|— Objets métiers (tech) |}} — Développement DSM —
|
{{#if:|— [[{{{1}}}]] |}} — Développement DSM —
}}