Quelqu'un aurait une

Serait-ce un bug de GuictrlSetData pour les labels

Dans le code ci-dessous, j'ai mis un Input pour illustrer mon désarroi... et le la loudeur de l'utilisation de StringReplace.
Code : Tout sélectionner
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt('MustDeclareVars', 1)
Local $label,$input,$label2,$input2,$text
Example1()
; example 1
Func Example1()
Local $msg
GUICreate("My GUI") ; will create a dialog box that when displayed is centered
GUISetState(@SW_SHOW) ; will display an empty dialog box
$text = "Tintin & Milou"
GUICtrlCreateGroup("test OK", 5,5, 150,60)
$label = GUICtrlCreateLabel("",10,20,100,20)
$input = GUICtrlCreateInput("",10,40,100,20)
GUICtrlSetData($label,StringReplace ($text,'&','&&'))
GUICtrlSetData($input,StringReplace(GUICtrlRead($label),'&&','&'))
GUICtrlCreateGroup("test HS", 5,75, 150,60)
$label2 = GUICtrlCreateLabel("",10,90,100,20)
$input2 = GUICtrlCreateInput("",10,110,100,20)
GUICtrlSetData($label2,$text)
GUICtrlSetData($input2,$text)
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete()
EndFunc ;==>Example1