在Visual Basic中分享First,Middle和Last名称 [英] Saperate the First, Middle and Last name in Visual Basic

查看:137
本文介绍了在Visual Basic中分享First,Middle和Last名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Visual Basic的作业。单个文本框接受用户的全名,然后必须在Saperate Three Text框中拆分名称。建议我代码。

解决方案

这些将帮助你..

http://www.daniweb.com/software-development/vbnet/threads/94805/separating-names [ ^ ]

< a href =http://social.msdn.microsoft.com/Forums/en-US/vbide/thread/167490b9-f489-4ac4-b294-947f42c4dabe> http://social.msdn.microsoft.com/Forums / en-US / vbide / thread / 167490b9-f489-4ac4-b294-947f42c4dabe [ ^ ]

http://www.tek-tips.com/viewthread.cfm?qid=1151795 [ ^ ]


有几种方法可以做到这一点:

1)使用 string.Split [ ^ ]

2)使用string.IndexOf [ ^ ] string.Substring [ ^ ]



要么可以工作,但既然这是你的功课,那就是你需要的所有帮助! :笑:

I Have an Assignment with Visual Basic. A Single text box accepts Full Name of User and then the Name must be splited in Saperate Three Text boxes. Suggest me The Code.

解决方案

These will help you..
http://www.daniweb.com/software-development/vbnet/threads/94805/separating-names[^]
http://social.msdn.microsoft.com/Forums/en-US/vbide/thread/167490b9-f489-4ac4-b294-947f42c4dabe[^]
http://www.tek-tips.com/viewthread.cfm?qid=1151795[^]


There are a couple of ways to do this:
1) Use string.Split[^]
2) Use string.IndexOf[^] with string.Substring[^]

Either will work, but since it''s your homework that''s all the help you should need! :laugh:


这篇关于在Visual Basic中分享First,Middle和Last名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆