FILENUM Library

A warning note icon.This section is currently being reworked. We apologize for the inconvenience. If you need immediate assistance, please contact Tibbo Support.


The FILENUM library automates file number assignment. The fd. object supports up to fd.maxopenedfiles opened files. Using the FILENUM library, your code can get an unused file number, work with the file "on" this number, then release the file number into a pool of free file numbers.

Library Info

Supported platforms:

Any platform with the fd. object.

Files to include:

Filenum.tbs, filenum.tbh (from current_library_set\filenum\trunk\).

Dependencies:

---

API procedures:

Use API procedures to interact with the library.

filenum_get() — returns a free file number or 255 if no free file numbers left.

filenum_who_uses() — returns the signature of the specified file number's user.

filenum_release() — releases the file number.

Event procedures:

Call event procedures from corresponding event handlers, as described here.

---

Callback procedures:

Implement the bodies of callback procedures elsewhere in your project.

---

Required buffer space:

---

FILENUM Library

Library Info