<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>http://wiki.sage.fr/index.php?action=history&amp;feed=atom&amp;title=GetAttribute_%28xmlitem%29</id>
	<title>GetAttribute (xmlitem) - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sage.fr/index.php?action=history&amp;feed=atom&amp;title=GetAttribute_%28xmlitem%29"/>
	<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=GetAttribute_(xmlitem)&amp;action=history"/>
	<updated>2026-05-25T04:49:24Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://wiki.sage.fr/index.php?title=GetAttribute_(xmlitem)&amp;diff=1186&amp;oldid=prev</id>
		<title>Syfre : Nouvelle page : &lt;source lang=&#039;delphi&#039;&gt;function GetAttribute(const iName:string; const iDefault:string):string;&lt;/source&gt;  Cette fonction retourne la valeur d&#039;un attribut, si l&#039;attribut n&#039;existe pas u...</title>
		<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=GetAttribute_(xmlitem)&amp;diff=1186&amp;oldid=prev"/>
		<updated>2009-08-07T13:40:28Z</updated>

		<summary type="html">&lt;p&gt;Nouvelle page : &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function GetAttribute(const iName:string; const iDefault:string):string;&amp;lt;/source&amp;gt;  Cette fonction retourne la valeur d&amp;#039;un attribut, si l&amp;#039;attribut n&amp;#039;existe pas u...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function GetAttribute(const iName:string; const iDefault:string):string;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette fonction retourne la valeur d&amp;#039;un attribut, si l&amp;#039;attribut n&amp;#039;existe pas une valeur par défaut est retournée.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Result&lt;br /&gt;
|Valeur de l&amp;#039;attribut ou iDefault si l&amp;#039;attribut n&amp;#039;existe pas&lt;br /&gt;
|-&lt;br /&gt;
|iName&lt;br /&gt;
|Nom de l&amp;#039;attribut&lt;br /&gt;
|-&lt;br /&gt;
|iDefault&lt;br /&gt;
|Valeur par défaut si l&amp;#039;attribut n&amp;#039;existe pas&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Exemple:&lt;br /&gt;
&amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;&lt;br /&gt;
procedure foo(elt:TxmlItem);&lt;br /&gt;
var id:Integer;&lt;br /&gt;
begin&lt;br /&gt;
  id := strToInt(elt.GetAttribute(&amp;#039;id&amp;#039;,&amp;#039;-1&amp;#039;));&lt;br /&gt;
  if id=-1 then Exit;&lt;br /&gt;
  ....&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Voir aussi:&lt;br /&gt;
&lt;br /&gt;
*[[AddAttribute (xmlitem)|AddAttribute]]&lt;br /&gt;
&lt;br /&gt;
{{Footer|Eléments XML (tech)}}&lt;br /&gt;
[[category:Elément XML]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>
	</entry>
</feed>