if else ??

zhangya 2001-08-22 09:25:17
if x... then
....
else if ....then
.....
else
.....
end if
vb告诉我有错误!!!为什么??????
...全文
123 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
yeahnope 2002-01-09
  • 打赏
  • 举报
回复
还是用
select case
case a:
...
case b:
...
...
end select
siyuan79 2002-01-09
  • 打赏
  • 举报
回复
快点结了吧!给分!
siyuan79 2001-08-22
  • 打赏
  • 举报
回复
if x... then
....
else if ....then
.....
else
.....
end if
end if
woowindice 2001-08-22
  • 打赏
  • 举报
回复
我来晚了
lanren_me 2001-08-22
  • 打赏
  • 举报
回复
UP
asciiman 2001-08-22
  • 打赏
  • 举报
回复
select case
chenke_ikari 2001-08-22
  • 打赏
  • 举报
回复
多条件用
Select Case
Case A
.....
Case B
.....
.....
End Select
好些
cqing 2001-08-22
  • 打赏
  • 举报
回复
除了楼上说的,还有一个办法:

if x... then
....
else if ....then
.....
else
.....
end if
end if

具体用那个,看你的逻辑关系
cjq2000 2001-08-22
  • 打赏
  • 举报
回复
11明显错误!!!
songyangk 2001-08-22
  • 打赏
  • 举报
回复
Elseif中间没有空格
ltpao 2001-08-22
  • 打赏
  • 举报
回复
if x... then
....
elseif ....then
.....
else
.....
end if

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧