Page 1 of 1

OpenFile with #PB_Any

Posted: Fri Jun 02, 2017 5:53 pm
by MrTAToad
Is supposed to return > 0 if okay or 0 if there was an error. At the moment though it returns [object Object]

Re: OpenFile with #PB_Any

Posted: Fri Jun 23, 2017 6:53 am
by Fred
Could you post a small snippet showing the issue ? It seems to display a number here:

Code: Select all

Debug OpenFile(#PB_Any, "", 0)

Re: OpenFile with #PB_Any

Posted: Fri Jun 23, 2017 10:42 am
by MrTAToad
Sorry, for some reason it happens when not using #PB_Any :

Code: Select all

Debug OpenFile(0, "", 0)
You get :
[object Object]

Re: OpenFile with #PB_Any

Posted: Mon Oct 09, 2017 10:14 am
by Fred
It returns nonzero if it doesn't fail (like all other commands, when using a number it returns the same value as xxxID() function).