<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>14 Jun 2019 10:26:11 Z</lastBuildDate><pubDate>13 Jun 2019 11:40:57 Z</pubDate><description>Bonjour,&#13;
je voudrais trier un tableau de structures avant de l’afficher dans une liste .&#13;
mais j'ai droit un crash lors du tri indiquant &#13;
[code:text]&#13;
Les tris ne peuvent s'effectuer que sur des éléments de type simple (entier, chaîne, ...)&#13;
[/code]&#13;
&#13;
une idées?&#13;
&#13;
Structure et classe:&#13;
[code:wl]&#13;
STAPI est une Structure&#13;
	sType est une chaîne &#13;
	sADR_3 est une chaîne&#13;
	sName est une chaîne&#13;
	sCP est un entier&#13;
	sCodeInsee est une chaîne fixe sur 5&#13;
	sCity est une chaîne&#13;
	sLabel est une chaîne&#13;
	sLat est une chaîne &#13;
	sLon est une chaîne &#13;
FIN&#13;
&#13;
&#13;
&#13;
API_BAN est une Classe&#13;
&#13;
	&#13;
LOCAL	&#13;
	AdresseTemp est un STAPI&#13;
	m_tabSTAPI_retournée_structure_TAB est un tableau de STAPI 	&#13;
	Struc_STAPI est une STAPI&#13;
	AdresseJSON est un JSON &#13;
	indiceTabAdresse est un entier sans signe &#13;
	sParaURL est une chaîne &#13;
FIN&#13;
[/code]&#13;
&#13;
je emplis mon tableau&#13;
[code:wl]&#13;
TableauSupprimeTout(m_tabSTAPI_retournée_structure_TAB)&#13;
i est un entier&#13;
i=1&#13;
TANTQUE PAS (AdresseJSON.features[i].properties.score &lt; Pertinence OU AdresseJSON.features[i]=0)&#13;
	AdresseTemp.sCity 			= AdresseJSON.features[i].properties.city&#13;
	AdresseTemp.sCP				= AdresseJSON.features[i].properties.postcode&#13;
	AdresseTemp.sCodeInsee		= AdresseJSON.features[i].properties.citycode&#13;
	AdresseTemp.sADR_3			= AdresseJSON.features[i].properties.housenumber&#13;
	AdresseTemp.sLabel			= AdresseJSON.features[i].properties.label&#13;
	AdresseTemp.sName			= AdresseJSON.features[i].properties.name&#13;
	AdresseTemp.sType			= AdresseJSON.features[i].properties.type&#13;
	AdresseTemp.sLat			= AdresseJSON.features[1].geometry.coordinates[1]&#13;
	AdresseTemp.sLon			= AdresseJSON.features[1].geometry.coordinates[2]	&#13;
	TableauAjoute(m_tabSTAPI_retournée_structure_TAB,AdresseTemp)&#13;
//	Trace(gMonAdresse.m_tabSTAPI_retournée_structure_TAB)&#13;
	i++	&#13;
FIN&#13;
[/code]&#13;
remplissage liste &#13;
[code:wl]&#13;
SI gMonAdresse.ConnexionAPIChargerTabAdresseLecturePremiereAdresse(SAI_ADR_1) ALORS&#13;
	Trie(gMonAdresse.Struc_STAPI.sCP,ttCroissant)&#13;
	SI gMonAdresse.AdresseLitPremier() ALORS&#13;
		ListeSupprimeTout(LISTE_SaisieAssisté)&#13;
		BOUCLE &#13;
			&#13;
			ListeAjoute(LISTE_SaisieAssisté,gMonAdresse.Struc_STAPI.sLabel+gLien(i))&#13;
			i++&#13;
			&#13;
			Trace(gMonAdresse.Struc_STAPI.sCP)&#13;
		À FAIRE TANTQUE gMonAdresse.LitSuivantAdresse()&#13;
		LISTE_SaisieAssisté..Visible=Vrai&#13;
	FIN&#13;
	&#13;
FIN&#13;
[/code]</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp</link><title>foncions trie et tab structures</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>blacksun</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230815/read.awp</comments><pubDate>14 Jun 2019 10:26:11 Z</pubDate><description>[code:wl]&#13;
TableauTrie(m_tabSTAPI_retournée_structure_TAB,ttMembre,"+sCP")&#13;
[/code]&#13;
&#13;
Ce code marche a une exception la dernièr…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230815/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230815/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item><item><author>Voroltinquo</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230811/read.awp</comments><pubDate>14 Jun 2019 10:13:00 Z</pubDate><description>Le problème est que sa liste n'est pas triée sur les éléments affichés :&#13;
Tri sur sCP et affichage de Label dans la liste&#13;
&#13;
--&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230811/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230811/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item><item><author>Popoy</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230806/read.awp</comments><pubDate>14 Jun 2019 08:20:40 Z</pubDate><description>@blacksun,&#13;
le trie sur une liste peut ce faire de 2 façons.&#13;
- par la propriété ..trié voir https://doc.pcsoft.fr/?2510115&amp;name…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230806/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230806/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item><item><author>Voroltinquo</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230802/read.awp</comments><pubDate>13 Jun 2019 18:27:13 Z</pubDate><description>[code:wl]&#13;
m_tabSTAPI_retournée_structure_TAB est un tableau de STAPI 	//On déclare le tableau&#13;
m_tabSTAPI_retournée_structure_T…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230802/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230802/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item><item><author>blacksun</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230791/read.awp</comments><pubDate>13 Jun 2019 16:54:51 Z</pubDate><description>Je ne comprends pas j'ai fait ce que tu m'as demandé à savoir &#13;
[code:wl]&#13;
TableauAjoute(m_tabSTAPI_retournée_structure_TAB,Adre…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230791/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230791/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item><item><author>Voroltinquo</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230790/read.awp</comments><pubDate>13 Jun 2019 16:40:50 Z</pubDate><description>Tu as oublié le ttmembre comme le précise la doc&#13;
[code:wl]&#13;
TableauTrie(m_tabSTAPI_retournée_structure_TAB,ttmembre+ttCroissant…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230790/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230790/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item><item><author>blacksun</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230782/read.awp</comments><pubDate>13 Jun 2019 13:08:02 Z</pubDate><description>popoy j'ai essayé ta méthode mais je peu visiblement pas trier la liste &#13;
[code:wl]&#13;
SI gMonAdresse.ConnexionAPIChargerTabAdress…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230782/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230782/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item><item><author>Voroltinquo</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230780/read.awp</comments><pubDate>13 Jun 2019 12:22:16 Z</pubDate><description>Bonjour,&#13;
Pour trier un tableau de structure, il faut utiliser la syntaxe suivante :&#13;
[code:wl]&#13;
TableauTrie(&lt;Tableau WLangage&gt; …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230780/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230780/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item><item><author>Popoy</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230779/read.awp</comments><pubDate>13 Jun 2019 12:21:30 Z</pubDate><description>Et pourquoi ne pas trié la liste après l'avoir rempli ?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230779/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures-230779/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/230778-foncions-trie-tab-structures/read.awp">foncions trie et tab structures</source><title>Re: foncions trie et tab structures</title></item></channel></rss>
