代码:
If bdr.Lines("生活照").Count > 0 Then
With .AddUploader("up0","",True)
.AllowAdd = False '关闭文件上传功能
For Each bzhaop As String In bdr.Lines("生活照")
If bdr.Lines("生活照缩略图").Count = 0 Then '生活照缩略图数量=0,显示大图
.AddImage("./shz/d/" & UrlEncode(bzhaop),"./shz/d/" & UrlEncode(bzhaop))
Else '有缩略图,显示小图
.AddImage("./shz/x/" & UrlEncode(bzhaop),"./shz/d/" & UrlEncode(bzhaop))
End If
Next
End With
End If
错误提示:
调用的目标发生了异常。
在 System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
在 System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
在 Foxtable.UserFunctions.Execute(String Name, Object[] Args)
索引和计数必须引用该字符串内的位置。
参数名: count
在 System.String.Remove(Int32 startIndex, Int32 count)
在 UserCode.Ac6KE70sLrlUbHwFm(Object[] Args)