C#验证两个字母数字数据 [英] C# verification two alphanumeric data

查看:73
本文介绍了C#验证两个字母数字数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何用texBox(G00K 2C0109 140314A 281 133)的前四位数从comboBox(G00K)中验证数字

如果相同则转到下一步。如果不一样显示消息



感谢

MMRZ

How I can verificate number from comboBox (G00K) with first four digits from texBox (G00K 2C0109 140314A 281 133)
If same go next. If not same show message

Thank´s
MMRZ

推荐答案

您可以在此处使用 string.Compare string.Substring 方法。您可以在网上找到有关如何使用它们的足够样本。
You can make use of string.Compare and string.Substring methods here. You can find enough samples on how to use them on web.


这篇关于C#验证两个字母数字数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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