Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
ng
Salut,
Quel est le but de ce codeo exactement ? obtenir le dernier char ?
Dim x As String = "abcdff" MessageBox.Show(x.Substring(x.Length - 1))
-- Nicolas G. FAQ VB : http://faq.vb.free.fr API Guide : http://www.allapi.net Google Groups : http://groups.google.fr/ MZ-Tools : http://www.mztools.com/
Bismark Prods <xanaia#nospam#@urbanet.ch> a écrit :
Hello,
Je trouve la syntaxe un peu longue et ca fait appel 3 fois quand meme au meme objet...
Dim x As String = "abcdff" MessageBox.Show(x.Substring(x.LastIndexOfAny(x.ToCharArray)))
Merci
Bismark
Salut,
Quel est le but de ce codeo exactement ? obtenir le dernier char ?
Dim x As String = "abcdff"
MessageBox.Show(x.Substring(x.Length - 1))
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
Bismark Prods <xanaia#nospam#@urbanet.ch> a écrit :
Hello,
Je trouve la syntaxe un peu longue et ca fait appel 3 fois quand meme
au meme objet...
Dim x As String = "abcdff"
MessageBox.Show(x.Substring(x.LastIndexOfAny(x.ToCharArray)))
Quel est le but de ce codeo exactement ? obtenir le dernier char ?
Dim x As String = "abcdff" MessageBox.Show(x.Substring(x.Length - 1))
-- Nicolas G. FAQ VB : http://faq.vb.free.fr API Guide : http://www.allapi.net Google Groups : http://groups.google.fr/ MZ-Tools : http://www.mztools.com/
Bismark Prods <xanaia#nospam#@urbanet.ch> a écrit :
Hello,
Je trouve la syntaxe un peu longue et ca fait appel 3 fois quand meme au meme objet...
Dim x As String = "abcdff" MessageBox.Show(x.Substring(x.LastIndexOfAny(x.ToCharArray)))
Merci
Bismark
Bismark Prods
lol, parfois on a le nez tellement dedans qu'on voit plus les trucs simples ! lol !
Merci
"ng" a écrit dans le message de news:
Salut,
Quel est le but de ce codeo exactement ? obtenir le dernier char ?
Dim x As String = "abcdff" MessageBox.Show(x.Substring(x.Length - 1))
-- Nicolas G. FAQ VB : http://faq.vb.free.fr API Guide : http://www.allapi.net Google Groups : http://groups.google.fr/ MZ-Tools : http://www.mztools.com/
Bismark Prods <xanaia#nospam#@urbanet.ch> a écrit :
> Hello, > > Je trouve la syntaxe un peu longue et ca fait appel 3 fois quand meme > au meme objet... > > Dim x As String = "abcdff" > MessageBox.Show(x.Substring(x.LastIndexOfAny(x.ToCharArray))) > > Merci > > Bismark
lol, parfois on a le nez tellement dedans qu'on voit plus les trucs simples
! lol !
Merci
"ng" <ng@ngsoft-fr.com> a écrit dans le message de
news:elXuwk1hEHA.3016@tk2msftngp13.phx.gbl...
Salut,
Quel est le but de ce codeo exactement ? obtenir le dernier char ?
Dim x As String = "abcdff"
MessageBox.Show(x.Substring(x.Length - 1))
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
Bismark Prods <xanaia#nospam#@urbanet.ch> a écrit :
> Hello,
>
> Je trouve la syntaxe un peu longue et ca fait appel 3 fois quand meme
> au meme objet...
>
> Dim x As String = "abcdff"
> MessageBox.Show(x.Substring(x.LastIndexOfAny(x.ToCharArray)))
>
> Merci
>
> Bismark
lol, parfois on a le nez tellement dedans qu'on voit plus les trucs simples ! lol !
Merci
"ng" a écrit dans le message de news:
Salut,
Quel est le but de ce codeo exactement ? obtenir le dernier char ?
Dim x As String = "abcdff" MessageBox.Show(x.Substring(x.Length - 1))
-- Nicolas G. FAQ VB : http://faq.vb.free.fr API Guide : http://www.allapi.net Google Groups : http://groups.google.fr/ MZ-Tools : http://www.mztools.com/
Bismark Prods <xanaia#nospam#@urbanet.ch> a écrit :
> Hello, > > Je trouve la syntaxe un peu longue et ca fait appel 3 fois quand meme > au meme objet... > > Dim x As String = "abcdff" > MessageBox.Show(x.Substring(x.LastIndexOfAny(x.ToCharArray))) > > Merci > > Bismark