Judging whether the VB function assigned by the array is

xiaoxiao2021-03-05  32

Function isredim (byref myarray () as variant) AS Boolean on Error Goto Z Dim Sztmp Sztmp = Join (MyArray, ",") Isredim = lenb (sztmp)> 0 exit functionz: isredim = false

Isredim judgment array is assigned, if it is an era, will return false

Example: if Isredim (UARRAY) THEN 'UARRAY has data ELSE' UARRAY No data end if

'-------------------------------------------' Please indicate the source 'author: Don just fine' E-mail: tanaya@163.com '------------------------------------- --------

转载请注明原文地址:https://www.9cbs.com/read-33477.html

New Post(0)