FileRequest$(Title$,Pathname$,Filename$): the file requester.
Opens the requester (shared/filereq/filereq_core.c) on the used screen. OK (button, double click on a file, Return in the file gadget) copies the path and the file name into path$ and file$ and returns path + "/" (unless it ends in ":" or "/") + file; CANCEL and the close gadget return "". The result is copied to a3, the place of the title. Fixed (#153): path$/file$ get the lengths of their new contents (the original left the old lengths). Fixed (#161): a3 ends on the terminating 0 (the original left it behind the 0). Fixed (#1042): what does not fit the requester or the MaxLen of path$/file$ is refused (notice in the screen title bar). The fixed bugs of the requester: see the head comment. DIFF: if chip memory, a library or the window cannot be opened, the result is "" (the original returns an uninitialized long). Errors (debugger, freqchk): path$ or file$ buffer 0 (error 1), "Not
enough space in PATH string" (less than 160 bytes), "Not enough space
in NAME string" (less than 64 bytes).
- Parameters
-
| title | d0: Title$ (a3 points at it, the result goes there) |
| path | d1: the buffer of the variable Pathname$ (160 bytes) |
| file | d2: the buffer of the variable Filename$ (64 bytes) |
| scr | a1: the used screen (!libs screenslib,$1102) |
- Returns
- d0: the length of the result; d1/a1 kept