如何从文本框中选择逗号之前的短语 [英] How Do I Select The Phrase Before A Comma From A Textbox

查看:88
本文介绍了如何从文本框中选择逗号之前的短语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框,其文本格式为,

Everyday Academy,delta。

我只需要选择逗号前面的单词或短语',' 。有人可以帮我解决这个问题吗?

I have a textbox whose text is of the format,
Everyday Academy, delta.
I need to select only the words or phrase before the comma ','. Can anyone assist me with how to do that please?

推荐答案

转到MSDN并学习字符串的各种方法 class。
Go to MSDN and learn the various methods of the string class.


提示... http://www.dotnetperls.com/split [ ^ ]


这篇关于如何从文本框中选择逗号之前的短语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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