UBOUND on empty array return -1
Is it safe to use this value to test that array is empty ?
Is there a better/safer way ?
$COMPILE EXE
FUNCTION PBMAIN () EXPORT AS LONG
DIM gsXarr() AS GLOBAL STRING
MSGBOX STR$(UBOUND(gsXArr)) 'Return -1
END FUNCTION
Thanks for your help!
Is it safe to use this value to test that array is empty ?
Is there a better/safer way ?
$COMPILE EXE
FUNCTION PBMAIN () EXPORT AS LONG
DIM gsXarr() AS GLOBAL STRING
MSGBOX STR$(UBOUND(gsXArr)) 'Return -1
END FUNCTION
Thanks for your help!
Comment