AttributesByName (xmlitem)

De Wiki1000
(Différences entre les versions)
(Nouvelle page : <source lang='delphi'>property AttributesByName[const iName:string]:TxmlAttribute;</source> '''Lecture seule''' Cette propriété accède aux attributs par leur nom. {{info|Si l'a...)
 
 

Version actuelle en date du 19 août 2009 à 09:43

property AttributesByName[const iName:string]:TxmlAttribute;

Lecture seule

Cette propriété accède aux attributs par leur nom.

Info-20px.png Note : Si l'attribut n'existe pas la propriété retourne nil.

Exemple:

procedure foo(elt:TxmlItem);
begin
  elt.AttributesByName['color'].Value := 'red';
end;

Voir aussi:

Eléments XML (tech)Développement DSM





Whos here now:   Members 0   Guests 0   Bots & Crawlers 1
 
Outils personnels