Bonjour,
Je commence un peu le flex, j'ai suivi quelques tutos et notamment ceux de developpez.com. Il y a une quelques lignes que j'ai du mal à comprendre :
Je ne comprend pas bien le "txtNom.text ? txtNom.text : "";" (surtout le ?) mais aussi les {0} {1} et {2}, variable 1 2 et 3 ???Code:
1
2
3
4
5
6 var email:String = txtEmail.text; var nom:String = txtNom.text ? txtNom.text : ""; var prenom:String = txtPrenom.text ? txtPrenom.text : ""; var msg:String = StringUtil.substitute("Courriel: {0}\nNom: " + "{1}\nPrénom: {2}",email,nom,prenom);
Merci d'avance pour vos réponses.