3 posts in this topic
Hi, Im kind of confused with seterror, If I put Sleep SetError is working fine, but without sleep set error doesn't work. please can someone give me a good and easy example. TIA
code = I don't really understand this, is it ok to put any numbers??? or some numbers represent something?
extended = same situation, is it ok to put any integer???
#include <Array.au3> #include <File.au3> $sFilePath = "C:\New Folder" $FLTAR = _FileListToArrayRec($sFilePath = "", "*.pdf", $FLTAR_FILES, $FLTAR_NORECUR, $FLTAR_SORT, $FLTAR_FULLPATH) If @error Then $FLTAR = SetError(1, 0, "0 files for transfer") Sleep(100) If $FLTAR = @error Then MsgBox(0, "$FLTARIf", $FLTAR) Else MsgBox(0, "$FLTARElse", "SUCCESS") EndIf I used 1 and 0 for testing only.