Page 1 of 1

Inconsistent behavior on DefDir$

Posted: Mon Apr 01, 2019 12:16 pm
by ilbarbax
Under windows, using FileRequest the defdir$ accepts / as directory separator, while PathRequest does not accepts / but wants \.
I had to use the following sentence:

DefDir$="M:/JOB_ARCHIVE/"

nf$=FileRequest("Select job picture","png|jpg|jpeg|tif|iff|pcx|bmp",#REQ_NORMAL,DefDir$)

nf$=PathRequest("Select where to place your blank job picture",#REQ_NORMAL,ReplaceStr(DefDir$, Chr(47), Chr(92)))

Re: Inconsistent behavior on DefDir$

Posted: Tue Apr 02, 2019 10:11 pm
by airsoftsoftwair
Good spot, I'll fix this.

Re: Inconsistent behavior on DefDir$

Posted: Mon May 27, 2019 6:12 pm
by airsoftsoftwair

Code: Select all

- Fix: PathRequest() and FileRequest() didn't allow you to mix slashes and backslashes in the path that
  was passed as the default directory