Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: old ado arrays
In winbatch I try:
oDept = RS.Fields("Department") deptName=oDept.name Dept=oDept.valueIt returns the field name Department (not the department name) and then errors on the .value statement with Error: 1249: Ole Object: Could not process value returned from object
Snippet of VBscript example below: item in bold is what I'm trying to convert to winbatch, Thanks in advance
Do While Not adoRs.EOF For Each adoField in adoRs.Fields varValue = adoField.Value varName = adoField.Name If varName = "ADsPath" Then WScript.Echo GetDNFromADsPath varvalue) Else If Not IsNull(varValue) Then If IsArray(varValue) Then For Each varElem in varValue WScript.Echo varName & String(30 - Len(varName),".") & varElem Next Else WScript.Echo varName & String(30 - Len(varName), ".") & varValue End If Else WScript.Echo varName & vbTab End If End If Next WScript.Echo adoRs.MoveNext lngCount = lngCount + 1 Loop
Article ID: W15227
File Created: 2002:09:05:13:50:44
Last Updated: 2002:09:05:13:50:44