新中国船厂有限公司:DW自动生成的代码也会有误吗?

来源:百度文库 编辑:中科新闻网 时间:2024/05/04 11:35:54
各位大虾,我是初学ASP,这下面的代码红色的被声明后就没再出现过!难道是DW出的错!
<--注-->下代码是DW自动生成的哟!
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function DoDateTime(str, nNamedFormat, nLCID)
dim strRet
dim nOldLCID

strRet = str
If (nLCID > -1) Then
oldLCID = Session.LCID
End If

On Error Resume Next

If (nLCID > -1) Then
Session.LCID = nLCID
End If

If ((nLCID < 0) Or (Session.LCID = nLCID)) Then
strRet = FormatDateTime(str, nNamedFormat)
End If

If (nLCID > -1) Then
Session.LCID = oldLCID
End If

DoDateTime = strRet
End Function
</SCRIPT>

这个得问机器去。
因为是它生成的。

报什么错你也没有告诉我们。