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)))
Inconsistent behavior on DefDir$
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Inconsistent behavior on DefDir$
Good spot, I'll fix this.
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Inconsistent behavior on DefDir$
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