Passing array as argument to a Class setter using VB 6.0

前端 未结 2 1640
情歌与酒
情歌与酒 2020-12-07 04:38

I need to pass a String array to set a class property using its setter method. Array was declared in Module and it\'s perfectly set the values using Redim

相关标签:
2条回答
  • 2020-12-07 04:58

    Remain the parentheses and add explicit 'Call':

    Call .SetPageNumberDetails(sPageDetails)
    

    It took 5-10 CPU ticks (~30 nsec), but code wil be more readable, editable, auditable etc. And it is simply comme il faut... .

    0 讨论(0)
  • 2020-12-07 05:14
    .SetPageNumberDetails(sPageDetails)
    

    Remove the parentheses:

    .SetPageNumberDetails sPageDetails
    
    0 讨论(0)
提交回复
热议问题