Major Member
加入日期: May 2000 您的住址: 台灣台中
文章: 173
|
請問,在VB中如何表示"or"
請問各位高手
在vb中要怎麼表示"or" 比如說,有三個條件"a或b或c"只要一個符合即可 在vb中要怎麼寫?? Thanks^_^
__________________
貪吃的狗... |
|||||||
2001-11-03, 09:34 AM
#1
|
Major Member
加入日期: Aug 2001 您的住址: 新北市中和
文章: 114
|
if a=true or b=true or c=true then
執行事件 end if |
||
2001-11-03, 09:44 AM
#2
|
Major Member
加入日期: May 2000 您的住址: 台灣台中
文章: 173
|
Sorry
之前講的不是很清楚,如下: 一個TextBox,一個CommandButton 在TextBox中只要輸入”news1”or”news2”or”news3”其一 按下CommandButton即為結果 謝謝解題
__________________
貪吃的狗... |
2001-11-04, 08:11 AM
#3
|
Senior Member
加入日期: Jun 2001 您的住址: 綠島
文章: 1,357
|
引用:
if TextBox = news1 OR TextBox = news2 OR TextBox = news1 then XXOO else OOXX end if
__________________
武士:看來我不應該來。 紫霞:現在才知道太晚了, 武士:留下點回憶行不行? 紫霞:我不要回憶,要的話留下你的人。 武士:這樣只是得到我的肉體,並不能得到我的靈魂,我已經有愛人了,我們不會有結果,你讓我走吧。 紫霞:好,我讓你走,不過臨走前你要親我一下。 |
|
2001-11-04, 11:01 AM
#4
|
Major Member
加入日期: May 2000 您的住址: 台灣台中
文章: 173
|
謝謝二位的解答
我之前寫成 if TextBox = news1 Or news2 Or news3 then 現在終於了解了
__________________
貪吃的狗... |
2001-11-04, 11:12 PM
#5
|