Re: Another 41cx Q: Message #3 Posted by Victor Koechli on 19 July 2003, 8:09 p.m., in response to message #1 by Sean McNamee
RESZFL does just that: Put the number of registers you want to allocate to the file in the X register and execute RESZFL - voilą. You can increase or decrease a file's size this way. To force a size reduction of a data file even if used registers (those with a value orher than zero in them) would be lost supply the desired file size as a negative number.
RESZFL works on the current file, you cannot specify a file name. To make your file the current one you can use SEEKPTA (with the file name in the Alpha register and zero in X) or EMDIRX (with number of the file in X; e.g. if your file is the fourth in Extended Memory as listed by EMDIR or CATALOG 4, then you would put 4 in X and execute EMDIRX).
Actually, only the 41CX can resize a file this way, as RESZFL is not in the Extended Functions module, but only in the CX Extended Functions.
Hope this helps. Kind regards,
Victor
|