这个IF有什么问题? [英] What is wrong with this IF?

查看:113
本文介绍了这个IF有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继续打算没有If的Else第163行中的错误有可能请指出我的错误吗?

I keep geeting an "Else without If " error in line 163 could some one please point out my error?

展开 | 选择 | Wrap | 行号

推荐答案

太多级别的如果。

代码缩进错误,无法正确检查(无论是为您还是对我们而言)。

尝试使用ElseIf代替大部分(或者更好的选择案例......) )。
Too many levels of IF.
Code indented incorrectly to check properly (either for you or for us).
Try using ElseIf for most of these instead (or even better Select Case ...).


另一种想法:

记住你在数据库中工作。为什么要尝试编写所有数据?


当然,更好的方法是将这些信息放入表中并从那里开始工作。显然你的选择,但这就是我要做的。
Another thought :
Remember you''re working in a database. Why try to code all the data in?

Surely a better way of going about this would be to put this info into a table(s) and work from there. Your choice obviously, but that''s what I''d do.


这正是你的错误所说的。你没有在第163行的ELSE或在165的END IF上有一个开放的IF声明。


你所拥有的唯一的IF在第8行并且在关闭时第161行
It''s exactly what your error says. You don''t have an opening IF statement for the ELSE on line 163 or the END IF on 165.

The only IF that you have is on line 8 and that is closed on line 161


这篇关于这个IF有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆