Dù sao thì khai báo tường minh ra vẫn tốt hơn.
@kyo: với các thủ tục nhỏ thì như vậy, thử khai báo sub dưới đây một cách tường minh:
Private Sub listSticker(Sh As Object, strAddress$, strSticker$, lngME&, flagUpdate as Boolean, RS() As Object, arrayRS() As Object, arrQuery$(), ubQuery&, RSCodeVar As Object, arrayRSCodeVar() As Object, arrQueryCodeVar$(), ubQueryCodeVar&, RSCondition() As Object, RSConstrain() As Object, arrConstrain$(), ubConstrain&(), arrQueryConstrain$(), ubQueryConstrain&, Optional strCode$, Optional firstRow&, Optional lastRow&, Optional maxRowList&, Optional colOrder$, Optional varOption)
nó sẽ thế này:
Private Sub listSticker(Sh As Object, strAddress As String, strSticker As String, lngME As Long, flagUpdate as Boolean, RS() As Object, arrayRS() As Object, arrQuery() As String, ubQuery As Long, RSCodeVar As Object, arrayRSCodeVar() As Object, arrQueryCodeVar() As String, ubQueryCodeVar As Long, RSCondition() As Object, RSConstrain() As Object, arrConstrain() As String, ubConstrain() As Long, arrQueryConstrain() As String, ubQueryConstrain As Long, Optional strCode As String, Optional firstRow As Long, Optional lastRow As Long, Optional maxRowList As Long, Optional colOrder As Long, Optional varOption As Variant)
không biết kyo thế nào chứ tui thấy khiếp vía luôn. mấy cái object, boolean không có ký hiệu ngắn hơn thì đành chịu vậy thôi.