<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 Mar 2019 17:06:42 Z</lastBuildDate><pubDate>17 Mar 2017 14:08:22 Z</pubDate><description>Bonjour,&#13;
&#13;
Je fais appel à vos lumières car je n'arrive pas à changer le fichier parcouru associé à une table.&#13;
&#13;
En fait, je crée un alias d'un fichier, je change le répertoire ainsi que le nom physique (nom qui peut varier d'une exécution à l'autre). Je voudrais que la table qui est liée initialement au fichier original soit liée à l'alias que je viens de créer. Je n'y arrive pas. Je vous joins le code utilisé. Il y a  des Info() qui traînent car c'est toujours en phase de développement.&#13;
&#13;
La dernière ligne provoque l'erreur suivante  "Erreur n°10085 : Le champ Table n'a pu s'initialiser,  car il a rencontré l'erreur HFSQL suivante : L'élément '34T1' n'a pas été trouvé." '34T1' étant le nom physique donné à l'alias. &#13;
&#13;
[code:wl]&#13;
				// Création d'un alias sur base de la structure du fichier LIVRACYL&#13;
		SI HAlias(LIVRACYL,sdCylindreEncodage) ALORS&#13;
			// Création d'un nom physique pour l'alias&#13;
			HChangeNom(sdCylindreEncodage,SansEspace(SAI_LOTFAB))&#13;
			// Changement du répertoire de travail&#13;
			HChangeRep (sdCylindreEncodage,gsSmapTemp)&#13;
		SINON&#13;
			Erreur("Echec de la création de l'alias",HErreurInfo())&#13;
			RETOUR&#13;
		FIN&#13;
		&#13;
		//		Vérification de l'existence d'un fichier temporaire d'encodage&#13;
		SI  fFichierExiste(gsSmapTemp+SansEspace(SAI_LOTFAB)+".FIC") ALORS&#13;
			Info("Le fichier existe déjà")&#13;
		SINON&#13;
			Info("Le fichier n'existe pas encore")&#13;
			HCréation(sdCylindreEncodage)&#13;
		FIN&#13;
		&#13;
		REQ_CYLINDRESLOTFAB_SEL_V20.paramCléUniqueLOTFAB = SAI_LOCLEUNIK&#13;
		HExécuteRequête(REQ_CYLINDRESLOTFAB_SEL_V20)&#13;
		SI HNbEnr(REQ_CYLINDRESLOTFAB_SEL_V20)&gt;0 ALORS&#13;
			// Il existe  déjà des cylindres pour le lot de fabrication sélectionné dans LIVRACYL&#13;
			HLitPremier(REQ_CYLINDRESLOTFAB_SEL_V20)&#13;
			TANTQUE PAS HEnDehors(REQ_CYLINDRESLOTFAB_SEL_V20)&#13;
				SI HCopieEnreg(sdCylindreEncodage,REQ_CYLINDRESLOTFAB_SEL_V20,hCopieIdAuto) ALORS&#13;
					HAjoute(sdCylindreEncodage,hFixeIdAuto)&#13;
				SINON&#13;
					Erreur("Copie d'enregistrement impossible.")&#13;
					SORTIR&#13;
				FIN&#13;
				HLitSuivant(REQ_CYLINDRESLOTFAB_SEL_V20)&#13;
			FIN&#13;
		FIN&#13;
		Info("Liaison initiale : "+TABLE..FichierParcouru)&#13;
		TABLE..FichierParcouru = sdCylindreEncodage..NomPhysique&#13;
		Info("Liaison initiale : "+TABLE..FichierParcouru)&#13;
		TABLE.LIVRCYL_1..LiaisonFichier = {sdCylindreEncodage+".LIVRCYL"}&#13;
&#13;
[/code]&#13;
&#13;
Merci d'avance pour votre aide.&#13;
&#13;
Dan</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp</link><title>[WD20] : Comment changer la liaison d'une table fichier</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>yannick.le_lay</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-224603/read.awp</comments><pubDate>11 Mar 2019 17:06:42 Z</pubDate><description>Bonjour,&#13;
je remonte un peu ce sujet car j'ai un peu le même problème&#13;
je change le nom d'un fichier de ma BDD : "Participants" …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-224603/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-224603/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item><item><author>daniel.cordier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204160/read.awp</comments><pubDate>21 Mar 2017 15:31:09 Z</pubDate><description>Bonjour Fabrice,&#13;
&#13;
Je m'en doute puisque c'est ce que j'ai utilisé en WD5.5 mais apparemment c'est l'assignation correspondant …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204160/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204160/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item><item><author>fromweb</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204129/read.awp</comments><pubDate>20 Mar 2017 18:53:34 Z</pubDate><description>Bonjour&#13;
&#13;
les fonctions enumxxx sont dipo pour lister les champs&#13;
&#13;
Cordialement&#13;
&#13;
&#13;
-- &#13;
Fabrice Harari&#13;
Consultant WinDev, W…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204129/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204129/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item><item><author>daniel.cordier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204120/read.awp</comments><pubDate>20 Mar 2017 15:44:48 Z</pubDate><description>N'ayant pas trouver une manière générique de changer les liaisons fichier, je me les suis tapées en dur car la modification étai…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204120/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204120/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item><item><author>daniel.cordier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204117/read.awp</comments><pubDate>20 Mar 2017 14:03:22 Z</pubDate><description>Bonjour à tous,&#13;
&#13;
J'ai encore un petit problème.&#13;
&#13;
Suite à la création de l'alias, la fenêtre appelle une fenêtre d'édition do…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204117/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204117/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item><item><author>daniel.cordier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204096/read.awp</comments><pubDate>20 Mar 2017 06:27:27 Z</pubDate><description>Merci Fabrice,&#13;
&#13;
C'est tellement simple que l'on a honte de ne pas y avoir pensé...&#13;
&#13;
Dan</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204096/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204096/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item><item><author>fromweb</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204078/read.awp</comments><pubDate>17 Mar 2017 19:04:14 Z</pubDate><description>Ca, c'est facile...&#13;
&#13;
tu fais, dans le code d'INIT DE LA TABLE, &#13;
matable..FIchierparcouru=VarGlobaleVIDEaudepart&#13;
&#13;
Ensuite,q …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204078/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204078/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item><item><author>daniel.cordier</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204073/read.awp</comments><pubDate>17 Mar 2017 15:39:46 Z</pubDate><description>Bonjour Fabrice, et ravi de te revoir, ici du moins ;)&#13;
&#13;
sdCylindreEncodage est déclaré comme une source de données. En fait, j…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204073/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204073/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item><item><author>fromweb</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204068/read.awp</comments><pubDate>17 Mar 2017 14:51:26 Z</pubDate><description>Bonjour Daniel&#13;
&#13;
dans ton code, tu testes sur l'existence de &#13;
gsSmapTemp+SansEspace(SAI_LOTFAB)+".FIC"&#13;
et si ca n'existe pas,…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204068/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier-204068/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/204064-wd20-comment-changer-liaison-table-fichier/read.awp">[WD20] : Comment changer la liaison d'une table fichier</source><title>Re: [WD20] : Comment changer la liaison d'une table fichier</title></item></channel></rss>
