![]() |
PCDVD數位科技討論區
(https://www.pcdvd.com.tw/index.php)
- 疑難雜症區
(https://www.pcdvd.com.tw/forumdisplay.php?f=34)
- - 請問,在VB中如何表示"or"
(https://www.pcdvd.com.tw/showthread.php?t=53118)
|
|---|
請問,在VB中如何表示"or"
請問各位高手
在vb中要怎麼表示"or" 比如說,有三個條件"a或b或c"只要一個符合即可 在vb中要怎麼寫?? Thanks^_^ |
if a=true or b=true or c=true then
執行事件 end if |
Sorry
之前講的不是很清楚,如下: 一個TextBox,一個CommandButton 在TextBox中只要輸入”news1”or”news2”or”news3”其一 按下CommandButton即為結果 謝謝解題 |
引用:
if TextBox = news1 OR TextBox = news2 OR TextBox = news1 then XXOO else OOXX end if |
謝謝二位的解答
我之前寫成 if TextBox = news1 Or news2 Or news3 then 現在終於了解了 |
| 所有的時間均為GMT +8。 現在的時間是03:59 PM. |
vBulletin Version 3.0.1
powered_by_vbulletin 2026。