<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://frp.sage.fr/wiki1000/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=CountWhere_%28role%29</id>
		<title>CountWhere (role) - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=CountWhere_%28role%29"/>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=CountWhere_(role)&amp;action=history"/>
		<updated>2026-04-28T04:41:05Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=CountWhere_(role)&amp;diff=6387&amp;oldid=prev</id>
		<title>Syfre : Page créée avec « &lt;source lang='delphi'&gt;function CountWhere(const iExpression:string; iArgs:Array of variant):Integer;&lt;/source&gt;  Cette fonction retourne le nombre d'objet du rôle vérifiant u… »</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=CountWhere_(role)&amp;diff=6387&amp;oldid=prev"/>
				<updated>2012-09-21T14:30:51Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function CountWhere(const iExpression:string; iArgs:Array of variant):Integer;&amp;lt;/source&amp;gt;  Cette fonction retourne le nombre d&amp;#039;objet du rôle vérifiant 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='delphi'&amp;gt;function CountWhere(const iExpression:string; iArgs:Array of variant):Integer;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette fonction retourne le nombre d'objet du rôle vérifiant une expression logique.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Result&lt;br /&gt;
|Nombre d'objet&lt;br /&gt;
|-&lt;br /&gt;
|iExpression&lt;br /&gt;
|Expression logique&lt;br /&gt;
|-&lt;br /&gt;
|iArgs&lt;br /&gt;
|Argument de l'expression&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{info|Cette fonction provoque le chargement du rôle si celui-ci n'est pas chargé.}}&lt;br /&gt;
&lt;br /&gt;
Exemple&lt;br /&gt;
&amp;lt;source lang='delphi'&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function doCountWhere(const ACaption,BCode:string):Boolean;&lt;br /&gt;
var instA:ClassA; indx:Integer;&lt;br /&gt;
begin&lt;br /&gt;
  instA := ClassA.Find('Caption=%1','',true,[ACaption]);&lt;br /&gt;
  Result := Assigned(instA);&lt;br /&gt;
  if not Result then Exit;&lt;br /&gt;
  Result := instA.listB.CountWhere(''unCodeB=%1'',[BCode]);&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;
*[[FindFirst (role)|FindFirst]]&lt;br /&gt;
*[[FindNext (role)|FindNext]]&lt;br /&gt;
&lt;br /&gt;
{{Footer|Rôles (tech)}}&lt;br /&gt;
[[category:Rôles (tech)]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	</feed>