Passing array as argument to a Class setter using VB 6.0

前端 未结 2 1655
情歌与酒
情歌与酒 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... .

提交回复
热议问题