<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>25 Jan 2019 16:41:32 Z</lastBuildDate><pubDate>19 Dec 2018 15:00:50 Z</pubDate><description>Bonjour à tous !&#13;
&#13;
Étant passé de la version 18 à la version 24, je recréais donc un topic ici pour mon problème. Je vous remets le lien de l'ancien topic étant non résolu ainsi que mon dernier post :&#13;
&#13;
-------------&#13;
&#13;
https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev.old/25844-wd18-probleme-modification-champ-table-par-programmation/read.awp&#13;
&#13;
-------------&#13;
&#13;
Philippe SB a écrit : &#13;
&gt; Je ne connais pas la structure de ta table, ni comment est remplie ta combo, tout ce que je peux te dire c'est que ta combo doit renvoyer le nom exact de la colonne de ta table pour que cela fonctionne.&#13;
&gt; &#13;
&gt; Pour le reste il y a le debugger.&#13;
&gt; &#13;
&gt; --&#13;
&gt; Cordialement,&#13;
&gt; &#13;
&gt; Philippe SAINT-BERTIN&#13;
&#13;
&#13;
Bonjour Philippe,&#13;
&#13;
Quelques news après avoir laisse de côté ce projet :&#13;
&#13;
- Achat de Windev 24 pour être à niveau&#13;
- Création d'une nouvelle fenêtre avec la même table et liaison pour être sur que le problème ne vient pas d'ailleurs&#13;
- Modification d'une ligne qui posait problème (voir erreur au dessus)&#13;
&#13;
[code:wl]&#13;
nNomcol est un entier = COMBO_Combo..Valeur&#13;
[/code]&#13;
Devient :&#13;
&#13;
[code:wl]&#13;
nNomcol est une chaîne = COMBO_Combo..ValeurAffichée&#13;
[/code]&#13;
- Remplissage du COMBO avec le nom réel de chaque colonne et non pas son nom affiché dans la table&#13;
&#13;
https://i.ibb.co/6WTZnxv/blablalefqdfqzdq.jpg&#13;
&#13;
Résultat :&#13;
&#13;
Cela fonctionne à moitié. Je m'explique : La modification fonctionne correctement sur les lignes sélectionnées et la colonne indiquée, mais il y a un effet de bord, les lignes sélectionnées s'inversent. J'ai fait une vidéo pour mieux comprendre :&#13;
&#13;
https://youtu.be/j1m6JfhiTKo&#13;
&#13;
Je vous remets le code entier également&#13;
&#13;
[code:wl]&#13;
nNomcol est une chaîne = COMBO_Combo..ValeurAffichée&#13;
&#13;
POUR TOUTE LIGNE SELECTIONNEE DE TABLE_Matierepremiere&#13;
	SI SEL_OPERATION..Valeur=1 ALORS&#13;
		{"TABLE_Matierepremiere." + nNomcol, indChamp} += SAI_SansNom1&#13;
	SINON&#13;
		{"TABLE_Matierepremiere." + nNomcol, indChamp} = SAI_SansNom1&#13;
	FIN&#13;
	TableEnregistre(TABLE_Matierepremiere)&#13;
FIN&#13;
TableAffiche(TABLE_Matierepremiere, taInit)&#13;
[/code]&#13;
&#13;
Là je ne comprends pas du tout, le code n'est pas censé tout inverser. Une idée ?&#13;
&#13;
Merci beaucoup par avance !</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp</link><title>[WD24] Problème modification champ table par programmation</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>poirier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223584/read.awp</comments><pubDate>25 Jan 2019 16:41:32 Z</pubDate><description>Bonjour,&#13;
&#13;
Solution trouvée, merci encore pour votre aide !&#13;
&#13;
[code:wl]&#13;
paramRubrique est une chaîne = COMBO_Combo..ValeurAff…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223584/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223584/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>poirier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223469/read.awp</comments><pubDate>22 Jan 2019 13:34:06 Z</pubDate><description>Re,&#13;
&#13;
Alors je pense qu'on va pouvoir faire quelque chose en requête SQL. Voici ce que j'ai fait :&#13;
&#13;
[code:wl]&#13;
paramRubrique …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223469/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223469/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>poirier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223458/read.awp</comments><pubDate>22 Jan 2019 10:21:36 Z</pubDate><description>Math a écrit : &#13;
&gt; Bonjour,&#13;
&gt; La fonction TableEnregistre est limitée en multiselection !!!&#13;
&gt; Voir les Conditions d'utilisatio…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223458/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223458/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>m.fraisse</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223324/read.awp</comments><pubDate>15 Jan 2019 19:20:42 Z</pubDate><description>Bonjour,&#13;
La fonction TableEnregistre est limitée en multiselection !!!&#13;
Voir les Conditions d'utilisation :&#13;
La fonction TableE…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223324/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223324/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>poirier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223320/read.awp</comments><pubDate>15 Jan 2019 16:47:08 Z</pubDate><description>Daryl a écrit : &#13;
&gt; Salut Valentin,&#13;
&gt; Remplace&#13;
&gt; nID = TABLE_Matierepremiere.COL_IDmatierepremiere[indChamp]&#13;
&gt; Par&#13;
&gt; nID = T…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223320/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223320/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>Daryl</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223250/read.awp</comments><pubDate>11 Jan 2019 17:25:30 Z</pubDate><description>Salut Valentin,&#13;
&#13;
Remplace&#13;
&#13;
[code]&#13;
nID = TABLE_Matierepremiere.COL_IDmatierepremiere[indChamp]&#13;
[/code]&#13;
&#13;
Par&#13;
&#13;
[code]&#13;
nI…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223250/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223250/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>poirier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223203/read.awp</comments><pubDate>10 Jan 2019 16:00:03 Z</pubDate><description>Daryl a écrit : &#13;
&gt; Salut Valentin,&#13;
&gt; &#13;
&gt; Lorsque tu lie une table à un fichier, il faut impérativement te déplacer dans le fic…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223203/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223203/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>poirier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223017/read.awp</comments><pubDate>2 Jan 2019 11:13:11 Z</pubDate><description>Bonjour Daryl, bonne année,&#13;
&#13;
Merci pour le conseil ! je vais voir comment mettre cela en œuvre.&#13;
&#13;
J'ai très peu d'expérience …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223017/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-223017/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>Daryl</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222918/read.awp</comments><pubDate>25 Dec 2018 14:56:19 Z</pubDate><description>Salut Valentin,&#13;
&#13;
Lorsque tu lie une table à un fichier, il faut impérativement te déplacer dans le fichier avant de modifier t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222918/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222918/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>poirier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222837/read.awp</comments><pubDate>20 Dec 2018 15:39:40 Z</pubDate><description>Bonjour Daryl,&#13;
&#13;
Merci pour ta réponse.&#13;
&#13;
Je viens d'essayer ton code, ça ne marche pas correctement non plus. Seule la derniè…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222837/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222837/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item><item><author>Daryl</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222829/read.awp</comments><pubDate>20 Dec 2018 11:52:27 Z</pubDate><description>Salut Valentin,&#13;
&#13;
Ton problème vient notament du fait que tu n'utilises pas l'indice de la table.&#13;
&#13;
Essaye avec ce code ci&#13;
&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222829/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation-222829/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222799-wd24-probleme-modification-champ-table-par-programmation/read.awp">[WD24] Problème modification champ table par programmation</source><title>Re: [WD24] Problème modification champ table par programmation</title></item></channel></rss>
