VB检查两个语句是否正确? [英] VB check for two statements to be true?
本文介绍了VB检查两个语句是否正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下代码,用于在显示form1之前检查一条语句是否为真:
Hi,
I have the following code which checks for one statement to be true before displaying form1:
If InStr(SourceC.Text, "<java>") Then
form1.Show()
Me.Hide()
End If</java>
我的表单上还有一个进度条,我希望进度条在显示form1之前达到最大,该怎么办?
我已经尝试了以下代码,但是只执行了"me.hide"而已:
I also have a progress bar on my form and I want the progress bar to get to maximum before it shows form1, how do I do that?
I have tried the following code but that just performs ''me.hide'' and nothing else:
If InStr(SourceC.Text, "<java>") And Checking_Site.Value = Checking_Site.Maximum Then
form1.Show()
Me.Hide()
End If</java>
推荐答案
IF InStr(SourceC.Text, "<java>") AND Checking_Site.Value = Checking_Site.Maximum THEN
...
</java>
这篇关于VB检查两个语句是否正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文