这个 VBSCRIPT 代码会触发消息框吗?

Will this VBSCRIPT code trigger the message box?

我正在浏览一个使用 VBScript 的旧经典 ASP 页面。下面的代码似乎使用了一个存储在名为 CODES_TIMESTAMP 的配置 (global.asa) 中的变量。但是,查看有问题的服务器,该变量似乎不再存在。我的问题是,如果该变量未在配置文件中定义,那么是否会激活错误消息框?

Dim DB_TIMESTAMP_CODES

DB_TIMESTAMP_CODES = "<%=Application("CODES_TIMESTAMP")%>"
    If trim(DB_TIMESTAMP_CODES) = "" Then
      msgbox "Setup Error... Codes are not Defined"
    End If

My question is, if that variable is not defined in the config file then will the error message box be activated?

值为“”。但是msgbox无法在ASP网页上执行。 msgbox 只会出现在 VBS 脚本中。

The code below appears to use a variable stored in the config (global.asa) called called CODES_TIMESTAMP

您(以前的开发人员)可以从任何页面为 Application 变量赋值。我建议你对所有 .ASP 页面进行全面搜索,可能这个值不在 GLOBAL.ASA