By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,035 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

vb 2008 join names

P: 3
Good day i want to join the data from txtfname,txtmname,txtlname,txtex to txtjoin

For example:

txtfname-------txtmname------txtlname-------txtex

1. John ------- adam ------- smith ------- jr.
2. Mario ------- steve

join those data to txtjoin

result:
txtjoin

1. smith, john jr., a.
2. steve, mario


anyone? How can i get those kinds of results? in VB.net/VB 2008. SALAMAT, MABUHAY
Oct 15 '15 #1
Share this Question
Share on Google+
3 Replies


100+
P: 299
Expand|Select|Wrap|Line Numbers
  1. txtjoin = txtfname & " " & txtmname & " " & txtlname & " " & txtex
Oct 15 '15 #2

P: 3
i have already done that code but howe about the txtmname? it should result to an initial " a. " instead of having the full word " adam " ??
Oct 15 '15 #3

100+
P: 299
To choose the first letter of a string you can do something like this
Expand|Select|Wrap|Line Numbers
  1. txtmname.substring(0,1)
Oct 16 '15 #4

Post your reply

Sign in to post your reply or Sign up for a free account.