<?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=ToString_%28objectlist%29</id>
	<title>ToString (objectlist) - 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=ToString_%28objectlist%29"/>
	<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=ToString_(objectlist)&amp;action=history"/>
	<updated>2026-05-25T07:34:57Z</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=ToString_(objectlist)&amp;diff=13198&amp;oldid=prev</id>
		<title>Syfre le 25 février 2020 à 12:47</title>
		<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=ToString_(objectlist)&amp;diff=13198&amp;oldid=prev"/>
		<updated>2020-02-25T12:47:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 25 février 2020 à 12:47&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function ToString(iIndex:Integer; iCount:Integer; iPropName:string; iDoubleQuote:boolean):string&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function ToString(iIndex:Integer; iCount:Integer; iPropName:string; iDoubleQuote:boolean):string&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cette &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;procédure supprime les objets &lt;/del&gt;de &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;la liste&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cette &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;méthode retourne une chaîne liste &lt;/ins&gt;de &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;valeurs&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Syfre</name></author>
	</entry>
	<entry>
		<id>http://wiki.sage.fr/index.php?title=ToString_(objectlist)&amp;diff=13197&amp;oldid=prev</id>
		<title>Syfre : Page créée avec « &lt;source lang=&#039;delphi&#039;&gt;function ToString(iIndex:Integer; iCount:Integer; iPropName:string; iDoubleQuote:boolean):string&lt;/source&gt;  Cette procédure supprime les objets de la... »</title>
		<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=ToString_(objectlist)&amp;diff=13197&amp;oldid=prev"/>
		<updated>2020-02-25T12:46:23Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function ToString(iIndex:Integer; iCount:Integer; iPropName:string; iDoubleQuote:boolean):string&amp;lt;/source&amp;gt;  Cette procédure supprime les objets de la... »&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 ToString(iIndex:Integer; iCount:Integer; iPropName:string; iDoubleQuote:boolean):string&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette procédure supprime les objets de la liste.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|iIndex&lt;br /&gt;
|Index de départ&lt;br /&gt;
|-&lt;br /&gt;
|iCount&lt;br /&gt;
|Nombre max a retourner&lt;br /&gt;
|-&lt;br /&gt;
|iPropName&lt;br /&gt;
|Nom de l&amp;#039;attribut à sérialiser&lt;br /&gt;
|-&lt;br /&gt;
|iDoubleQuote&lt;br /&gt;
|Ajouter des quotes aux valeurs retourner&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Pseudo code équivalent:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;delphi&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ToString(iIndex:Integer; aCount:Integer; iPropName:string; iDoubleQuote:boolean; const iSep:String=&amp;#039;,&amp;#039;):String;&lt;br /&gt;
var indx:Integer; AStr,stag:string; isOID:boolean;&lt;br /&gt;
begin&lt;br /&gt;
  isOID := SameText(iPropName,&amp;#039;oid&amp;#039;) or SameText(iPropname,&amp;#039;InstanceOID&amp;#039;);&lt;br /&gt;
  //&lt;br /&gt;
  Result := &amp;#039;&amp;#039;; stag := &amp;#039;&amp;#039;;&lt;br /&gt;
  indx := iIndex;&lt;br /&gt;
  if ACount=-1 then ACount := Count;&lt;br /&gt;
  while (indx&amp;lt;Count) and (ACount&amp;gt;0) do&lt;br /&gt;
    begin&lt;br /&gt;
      if isOID&lt;br /&gt;
        then AStr := OIDs[indx]&lt;br /&gt;
        else AStr := SafeVarToStr(Refs[indx].GetPropAsVariant(iPropName));&lt;br /&gt;
&lt;br /&gt;
      if iDoubleQuote then AStr := Doublequote(AStr);&lt;br /&gt;
&lt;br /&gt;
      Result := Result+stag+AStr;&lt;br /&gt;
      stag := iSep;&lt;br /&gt;
      Inc(indx);&lt;br /&gt;
      dec(ACount);&lt;br /&gt;
    end;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Voir aussi:&lt;br /&gt;
&lt;br /&gt;
{{Footer|Listes d&amp;#039;objets (tech)}}&lt;br /&gt;
[[category:Listes d&amp;#039;objets]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>
	</entry>
</feed>