Last Name/ First Name Reversal?

Apr 18, 2012

I know my button is all over the place but in short:

Listbox contains "Lastname, Firstname" and I wan to flip it to "Firstname Lastname"

Using a string.split I can find the comma and remove it but getting sub strings for the rest of the item and exchanging them is beyond me. here's what I have:

Private Sub Button7_Click(sender As System.Object, e As System.EventArgs) Handles Button7.Click
Dim firstname, lastname As Object
For Each Itm As String In ListBox1.Items

[code]....

View 3 Replies


ADVERTISEMENT

Firstname / Lastname In Listbox Reversal

Apr 18, 2012

new enough at something like this, I know my button is all over the place but in short: Listbox contains "Lastname, Firstname" and I wan to flip it to "Firstname Lastname" Using a string.split I can find the comma and remove it but getting sub strings for the rest of the item and exchanging them is beyond me. here's what I have:

[Code]...

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved