- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用使用 vba Erl() 函数进行错误处理的 Excel 电子表格。 vba 代码可能如下所示:
Sub doSomething()
Dim v as variant
Dim v1 as Variant
On Error goto err_Handler
10 v = "Test"
20 v1 = 1/0 ' Generate error
30 Call doMoreStuff()
Exit Sub
err_Handler:
if Erl = 20 then
Resume Next ' Ignore this error
Else
Msgbox "Looks Like there is a REAL error somewhere. Desc = " & Err.Description
End If
End Sub
我不会以这种方式使用 Erl 做出判断。就个人而言,我从不这样做,但我们有很多电子表格都有这个。
最佳答案
Has anyone else noticed this?
accde
时或
mde
格式。这是我的复制说明(使用版本 2112、16.0.14729.20260 C2R 测试)。
Sub Test()
Dim a As Long
Dim error_lines As String
On Error GoTo error_handler
10: a = 1 / 0
20: a = 1 / 0
30: a = 1 / 0
40: a = 1 / 0
50: a = 1 / 0
Debug.Print error_lines
Exit Sub
error_handler:
error_lines = error_lines & Erl() & ","
Resume Next
End Sub
10,20,30,40,50,
在即时窗口中。到目前为止,一切都很好。accde
文件与文件/另存为...Test
.10,20,0,0,0,
Has anyone else had to deal with this problem and can you outline how you addressed this problem?
10: FrobnicateFoo()
20: ...
error_handler:
If Erl() = 10 ...
和
Dim line_nr As Long
line_nr = 10
FrobnicateFoo()
line_nr = 20
...
error_handler:
If line_nr = 10 ...
但是,这将是一个用命名良好的变量替换那些无意义的行号的好机会,例如
Dim frobnicating_foo As Boolean
frobnicating_foo = True
FrobnicateFoo()
frobnicating_foo = False
...
error_handler:
If frobnicating_foo Then ...
关于excel - Erl() 函数在 64 位 O365 Excel VBA 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62942335/
以下使 erl 挂起: $ erl Erlang/OTP 24 [erts-12.1] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1
以下使 erl 挂起: $ erl Erlang/OTP 24 [erts-12.1] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1
当使用 erlc 编译 erlang 文件时,我可以添加其他包含目录,如下所示: erlc -I /home/trotter/code/open-source/yaws/include src/mya
我有一个简单的 Erlang 命令,我想通过 erl -eval 调用(编译 erlydtl 模板,如 erlydtl page 中所述)。 当我从 shell 交互执行时,一切正常,命令立即退出:
我试图做类似于 How to make two different source directories in a Makefile output to one bin directory? 的事情,
如果一个模块没有行号,当捕获到错误时,Erl 语句将返回什么? 最佳答案 Erl 将在没有行号的方法中返回 0。如果某些行有编号,那么 Erl 将返回最后执行的有编号的行的编号。 关于error-ha
有没有办法直接在erl中使用记录?不管我怎么尝试,它总是说找不到记录。我正在尝试进行 mnesia 交易,如果没有我的记录,我就无法走得太远。非常感谢任何帮助 - 谢谢! 最佳答案 是的,使用 hel
Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1] [async-threads:0 [kernel-poll:false] Eshell V5.8
我对 YAWS 和 ERLANG 很陌生,想从不同的 .erl 文件调用一个函数到 YAWS 页面。 即,我有一个名为 pages.yaws 的页面,还有另一个名为 Utility.erl 的文件,并
环境是在虚拟机中运行的archlinux。 Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe]
我是 emacs 上 elixir 的新手。 elixir-mode-iex 有什么作用?它类似于拥有 REPL 吗?我创建了一个 elixir 文件,当我从中运行 elixir-mode-iex 时
我想从控制台运行以下 eunit 测试命令 eunit:test([test_module, [verbose]). 我试过这个,但似乎不起作用 erl -noshell -pa ./ebin -s
我正在使用 ejabberd 16.09 版本,通知使用 mod_apns.erl 文件到 mod_apns 模块。 我正在使用此模块接收离线消息,还接收来自被阻止用户消息的通知。即 UserA 和
我在我的应用程序中实现了 rabbitmq,它在 Windows Server 2008 服务器上运行,问题是 erl.exe 占用了很高的 CPU 使用率,有时它达到 40-45% 的 CPU 使用
我希望能够有两个 Erlang shell 来说话。我在 OS X 上运行。 我尝试了 tut17 示例 here . 我也试过: $ erl -sname foo 然后在一个新的终端中: $ erl
如果我按照以下方式启动 IEx session ,则 cookie 设置正确。 $ iex --name example@10.10.10.2 --cookie mycookie -S mix ...
我可以使用相应的箭头键上下移动历史记录,但是对于大量历史记录来说这很麻烦,而且 CTRL-R 似乎不起作用。 看了Erlang's shell module和 Elixir's IEx module文
我可以使用相应的箭头键上下移动历史记录,但是对于大量历史记录来说这很麻烦,而且 CTRL-R 似乎不起作用。 看了Erlang's shell module和 Elixir's IEx module文
我可以通过命令行或 bash 脚本启动 Erlang 文件: exec erl file.erl 但是,我似乎无法找到如何在这个文件中直接启动一个函数。 例如 exec erl file.erl -f
尝试通过运行更新对 phoenix 应用程序的依赖:mix deps.get 唯一的 STOUT 是: 07:20:21.642 [error] SSL: :certify: ssl_handshak
我是一名优秀的程序员,十分优秀!