PDA

View Full Version : Create Folder function



NewsArchive
06-01-2009, 01:43 AM
Friedrich,

The docs state:
If the function succeeds, the %_SB_ERRORCODE% return value is nonzero.
If the function fails, the return value is zero.

Going by other script functions that test the error code, it appears a zero
is success, otherwise it's the error code raised if a function fails. Are
the docs backwards here?

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/dev.htm

NewsArchive
06-01-2009, 01:43 AM
Russ,

The return value always depends on the underlying Windows API.

For example: the CreateDirectory API in this case.

http://msdn.microsoft.com/en-us/library/aa363855%28VS.85%29.aspx

BTW, in most cases (90% ???), %_SB_ERRORCODE% returns a nonzero
value if the function succeeded.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
06-01-2009, 01:44 AM
Thanks! That is why it caught my eye, it was different than normal. ;-)

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/dev.htm