开发者

asp ERROR MESSAGE

How I can solve this error message

Microsoft VBScript runtime error '800a01a8' Object required: 'lUATRef'

/cmgtest/transaction/viewPCReqForm.asp, line 284

this is some source code that I wrote below

function checkU开发者_JAVA百科ATReq(aUATRef) 
    Dim correctness,lUATRef,uatRef 
    correctness = False 
    lUATRef = aUATRef 
    uatRef = lUATRef.Substring(1,2) 
    rwriteln uatRef 
    'sqlCheckUATReq = "select * from PC_DETAIL where ID ='"&uatReqRef&"'" 
    'rwriteln uatReqRef 
End function 


Seems like your function isn't getting a parameter passed to it. Check whether aUATRef is getting initialized.


In VBScript, Strings aren't objects. You should use the Mid function to get a portion of a string:

uatRef = Mid(IUATRef, 1, 2)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜