Bonjour à toutes et tous.

Je bute sur l'utilisation d'une indirection pour une fenetre mobile.
Voila j'ai des fenetres FEN_audit1, FEN_audit2, FEN_audit3 etc.

Selon l'étape de mon process je dois parfois aller directement à une fenetre.

Voila mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SI HTrouve(siteAuditlocal) ALORS
		Info("reprise")
		gnIDsiteauditlocal = siteAuditlocal.IDsiteAuditlocal
		nEtape = siteAuditlocal.etape
//		OuvreFenêtreMobile({"FEN_audit" + nEtape})
		SELON nEtape
			CAS 1
				OuvreFenêtreMobile(FEN_audit1)
				RENVOYER 1
			CAS 2
				OuvreFenêtreMobile(FEN_audit2)
				RENVOYER 1
			CAS 3
				OuvreFenêtreMobile(FEN_audit3)
				RENVOYER 1
			CAS 4
				OuvreFenêtreMobile(FEN_audit4)
				RENVOYER 1
			CAS 5
				OuvreFenêtreMobile(FEN_audit5)
				RENVOYER 1
			CAS 6
				OuvreFenêtreMobile(FEN_audit6)
				RENVOYER 1
 
			AUTRE CAS
				Erreur("erreur suivi")
		FIN
	SINON
		RENVOYER 0
	FIN
L expression OuvreFenêtreMobile({"FEN_audit" + nEtape}) me renvoie systématiquement l erreur FEN_auditx non trouvée, et ce que j ajoute ,indFenetre ou pas.

Merci pour vos lumieres