谁能帮我理解这段 VBScript 在做什么。我迷失在 WhereClause 位
If CVs = "," or CVs = ",," Then
ExistingSupplierCVs = 0
Else
Set CVRecords = Ext.CreateAppRecordList( ActivityTableId )
WhereClause = Left(CVs, Len(CVs)-1)
WhereClause = Right(WhereClause, Len(WhereClause)-1)
WhereClause = "TS_ID in (" & WhereClause & ") and TS_SUPPLIER = " & Supplier
If Not CVRecords.ReadWithWhere( WhereClause ) then
Call Ext.LogErrorMsg( "TeamScript Error : Cannot find " & QUOTE & WhereClause & QUOTE & " in table " & QUOTE & "USR_ACTIVITY" & QUOTE )
Exit Sub
End If
ExistingSupplierCVs = CVRecords.Length()
End If