有关VB If then else 我有写个一条例当A>B 然后 txt.text = ABC 否则当A>C 然后 A需要>D 才执行 txt.text =CDE否则 A=E当A>B 然后 txt.text = ABC 否则 是if a>b thentxt.text = ABCelseif A>C txt.text =CDEelseA=EEnd If我的问题

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 04:54:58

有关VB If then else 我有写个一条例当A>B 然后 txt.text = ABC 否则当A>C 然后 A需要>D 才执行 txt.text =CDE否则 A=E当A>B 然后 txt.text = ABC 否则 是if a>b thentxt.text = ABCelseif A>C txt.text =CDEelseA=EEnd If我的问题
有关VB If then else
我有写个一条例
当A>B 然后 txt.text = ABC 否则
当A>C 然后 A需要>D 才执行 txt.text =CDE
否则 A=E
当A>B 然后 txt.text = ABC 否则 是
if a>b then
txt.text = ABC
elseif A>C
txt.text =CDE
else
A=E
End If
我的问题是我需要肯定 A>C 才判断,A是否大于D 然后才执行 txt.text =CDE ,否则 A=E

有关VB If then else 我有写个一条例当A>B 然后 txt.text = ABC 否则当A>C 然后 A需要>D 才执行 txt.text =CDE否则 A=E当A>B 然后 txt.text = ABC 否则 是if a>b thentxt.text = ABCelseif A>C txt.text =CDEelseA=EEnd If我的问题

if A>B then
txt.text=ABC
elseif A>C then
if A>D then
txt.text=CDE
end if
else
A=E
end if

VB中的IF语句能如下用吗?IF 条件1 Then If条件2 Then 语句1 Else 语句2 End If Else 语句3 End If if-then-else是什么意思 vb if else 语法中,then后面如果有多条语句,需要用括号括起来么? 有关VB If then else 我有写个一条例当A>B 然后 txt.text = ABC 否则当A>C 然后 A需要>D 才执行 txt.text =CDE否则 A=E当A>B 然后 txt.text = ABC 否则 是if a>b thentxt.text = ABCelseif A>C txt.text =CDEelseA=EEnd If我的问题 IF then else end if 怎么用的?IF thenelseend if 怎么用的?特别是结束句!我最好能举例!要三个条件语句!代码要完整!麻烦你了我刚学!VB C语言中有if then语句么?我的C语言书上只有if-else.我怀疑是不是if then中的then可以省略?比如if(a==5){then y=5;}else y=6;这个then可以写也可以不写?我的书里没有if then VB 6.0 If x Then Print x Else Print x + 1Dim xIf x Then Print x Else Print x + 1输出结果是1 VB程序:Dim x If x Then Print x Else Print x+2 为什么答案等于2? VB中 Dim x If x then print x else print x+1结果是什么请指请问为什么执行的是ELSE VB中判断奇偶 y=IIf(x mod 2,1,0) If y Then Print 奇数 Else Print 偶数 End If为什么是if ythen而不是if y=1 then呢?if y 是什么意思 vb题 代码是m = 5 n=6 if x>0 then m=n-3 else n=3 print n-m if.then if.then if.then else end if 以上这种语句是不对的吗? if.then不能循环? 以下是一段VB程序:if I=1 then x=x+1 else x=x*2 end if 它的基本结构是( ) 顺序结构 选择结构 循环结构 树型结构 第2题:在VB中,以下程序段:a=6 :x=5 if a5 then if b3 then c=a*b else c=a mod b end if 1 -1 2 6 VB:Sgn pricate sub command1_click()x= -5If sgn(x) then y=sgn(x^2)else y =sgn(x)end if print yend sub这两题 第一道sgn(-5^2)=1 第二题sgn(-6^2)=-1这是为啥我知道 正数就是1 负数就是-1 请看清楚我的问题我是想知道-5^2 如果 Vb 的 IF 不要 ELSE 和ENDIF 的话 能不能这样写if 1=1 then 表达式 :_表达式 :_表达式 不研究它的实用性 就说 这样 我不是 也多行写了 不也 没用END IF VB的if then end if 可不可以再在中间+上if 语句假如这样if ````````then``````` '这是第一种情况,这里可不可以再加上ifelseif then````````else`````end if 就是如果出现第一种情况后,能不能再在第一种情况下 A=2:b=1:c=0 if a then if b then if c then Print “1” else Print “2” else Print “3” else Print VB中用IF语句把a b c d e从大到小排列a b c d e 是未知数,例如,找出a b c 中的大数,if max=b then max=a else max=bif max