在我的代码中,我遇到了这个错误代码:
模糊地使用' changeDetails(for :)'
你能告诉我如何解决它吗?
extension PHChange {
func changeDetails<T: PHObject>(for object: T) -> PHObjectChangeDetails<T>? {
return self.changeDetails(for: object) as! PHObjectChangeDetails<T>?
}
func changeDetails<T: PHObject>(for fetchResult: PHFetchResult<T>) -> PHFetchResultChangeDetails<T>? {
return self.changeDetails(for: fetchResult)
}
}
答案 0 :(得分:0)
With ActiveSheet
If .AutoFilterMode Then .AutoFilterMode = False
With .Cells(1, 1).CurrentRegion
.AutoFilter Field:=2, Criteria1:="=*jpn*", _
Operator:=xlOr, Criteria2:="=*promo*"
With .Resize(.Rows.Count - 1, .Columns.Count).Offset(1, 0)
If CBool(Application.Subtotal(103, .Cells)) Then _
.EntireRow.Delete
End With
End With
End Sub
框架内已有两个函数正在执行相同的操作。如果您仍想创建通用版本,则应更改外部参数名称,如下所示:
invAdjRec.setCurrentLineItemValue('inventory','serialnumber',lotNumber);