Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Bug] SetFolder

Author
Message
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Feb 2017 21:51 Edited at: 22nd Feb 2017 21:51
From the help file:
Quote: " This command returns 1 on success or 0 if you use an invalid path such as SetFolder("C:\")"


However, rather than returning 0 for using that exact example, the app errors out. (not to mention the error refers to the deprecated command name)

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 23rd Feb 2017 17:25
If you use SetErrorMode(1) then it will return 0 instead of telling you about the error.
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Feb 2017 22:17
Oh, gotcha!

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-03-29 02:03:00
Your offset time is: 2024-03-29 02:03:00