文本框中的前2个字母 [英] First 2 letters in textbox

查看:86
本文介绍了文本框中的前2个字母的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要阅读文本框的前2个字母。





任何想法或链接?

解决方案

使用 TextBox.Text 。还有一些最小的常识。



链接?不,对不起您没有给我们提供TextBox的确切类型名称(您知道这个名称下有多少不同的类型吗?),但您可以轻松找到使用Google或Bing的链接。特别是如果你给它一个完全合格的名字。



-SA


  Dim  str  as   String  
str = TextBox1.Text.Substring( 0 2


I need to read the first 2 letters of a textbox.


Any idee''s or links ?

解决方案

Use TextBox.Text. And some minimal common sense.

Links? No, sorry. You did not bother to give us exact type name of the "TextBox" (do you know how many different type under this name are there?), but you can easily find a link using Google or Bing. Especially if you give it a fully-qualified name.

—SA


Dim str as String
str = TextBox1.Text.Substring(0,2)


这篇关于文本框中的前2个字母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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