如何检查某个短语? [英] How do I make it check for a certain phrase?

查看:63
本文介绍了如何检查某个短语?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,谢谢你点击,我正在制作一个游戏,我遇到了一个残障,我正在努力建立一个积分系统,如果你有合适的金额,你可以购买任意多的你,我试过这个:

 如果 Game.NumericUpDown1.Contains(   100然后 



但它只是显示为错误,如果有人可以告诉我如何正确使用包含变量,那将非常感激:)

解决方案

尝试

如果Game.NumericUpDown1.Value> = 100那么


Hey , Thanks for clicking , I am making a game and I ran into a stump , I am trying to make a points system where if you have the right amount , you can buy as many as you want of it , I tried this :

If Game.NumericUpDown1.Contains("100") Then


But it just displays as an error , if someone can please tell me how to use the "Contains" variable correctly , that'd be much appreciated :)

解决方案

Try

If Game.NumericUpDown1.Value >= 100 Then


这篇关于如何检查某个短语?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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