<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>24 Feb 2020 16:09:04 Z</lastBuildDate><pubDate>24 Feb 2020 14:20:47 Z</pubDate><description>Bonjour,&#13;
&#13;
Je ne comprends pas bien le fonctionnement des fonctions cherche et extrait chaîne. J'en ai besoin pour extraire des informations d'un tableau composé de chaîne de caractère.&#13;
&#13;
Mon application : &#13;
&#13;
J'ai un tableau à 1 dimension contenant des lignes de codes, par exemple : X45 Y13&#13;
Je souhaite dans un premier temps à l'aide de la fonction cherche déterminer ou non s'il y a des caractères "X" et "Y" présent dans la ligne.&#13;
&#13;
Ensuite extraire le nombre derrière le X et le Y a fin de l'affecter à une autre variable.&#13;
&#13;
Voici mon code : &#13;
	POUR i= 1 À 3 PAS 1&#13;
		LigneLue=Cherche(tabTableauEnregistre[j],tcLinéaire,"X""Y")&#13;
		SI LigneLue=-1 ALORS&#13;
			SORTIR&#13;
		FIN&#13;
		X[i]=ExtraitChaîne(tabTableauEnregistre[j],"X"," ")&#13;
		Y[i]=ExtraitChaîne(tabTableauEnregistre[j],"Y"," ")&#13;
&#13;
J'ai besoin des variables X1 Y1 X2 Y2 X3 Y3 et j sert à parcourir l'entièreté du tableau.&#13;
&#13;
Si je ne suis pas assez clair, prévenez moi et je répondrais aux questions.&#13;
&#13;
Merci d'avance</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine/read.awp</link><title>Fonction cherche , extrait chaine</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Philippe SB</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237258/read.awp</comments><pubDate>24 Feb 2020 16:09:04 Z</pubDate><description>[quote]Je crois que vous m'avez mal compris.&#13;
&#13;
Prenons le un tableau Tab :&#13;
Tab[1] = X50.4 Y67.8 Z45&#13;
Tab[2] = X45 Y86&#13;
Tab[3] …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237258/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237258/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine/read.awp">Fonction cherche , extrait chaine</source><title>Re: Fonction cherche , extrait chaine</title></item><item><author>Samir BOUCHETIBAT</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237257/read.awp</comments><pubDate>24 Feb 2020 15:57:34 Z</pubDate><description>Bonjour &#13;
&#13;
Par exemple&#13;
&#13;
[code]&#13;
POUR indi=1 À tab..Occurrence&#13;
	{"X"+indi,indVariable}=Val(tab[indi][[Position(tab[indi],"X")…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237257/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237257/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine/read.awp">Fonction cherche , extrait chaine</source><title>Re: Fonction cherche , extrait chaine</title></item><item><author>Quentin Lec.</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237255/read.awp</comments><pubDate>24 Feb 2020 15:31:52 Z</pubDate><description>Je crois que vous m'avez mal compris.&#13;
&#13;
Prenons le un tableau Tab :&#13;
Tab[1] = X50.4 Y67.8 Z45&#13;
Tab[2] = X45 Y86&#13;
Tab[3] = X89 Y…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237255/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237255/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine/read.awp">Fonction cherche , extrait chaine</source><title>Re: Fonction cherche , extrait chaine</title></item><item><author>Philippe SB</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237253/read.awp</comments><pubDate>24 Feb 2020 15:02:16 Z</pubDate><description>Bonjour,&#13;
&#13;
En faisant comme ça tout simplement:&#13;
[code:wl]&#13;
sMaChaine est une chaîne = "X1 Y1 Z25 X2 Y2 X3 Y3"&#13;
&#13;
POUR TOUTE CH…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237253/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine-237253/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/237252-fonction-cherche-extrait-chaine/read.awp">Fonction cherche , extrait chaine</source><title>Re: Fonction cherche , extrait chaine</title></item></channel></rss>
