Inconsistent behavior on DefDir$
Posted: Mon Apr 01, 2019 12:16 pm
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)))
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)))