home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
PBAPI10.ZIP
/
APIDOCS.ZIP
/
MNNNNTXT.DOC
< prev
next >
Wrap
Text File
|
1998-02-21
|
2KB
|
49 lines
Author....... : Gary Price
Copyrighted by: Freejack's Software 1997-98
MNNNN_TXT API for TriBBS v10.x/11.x written in PowerBasic v3.5
---------------------------------------------------------------------------
The MNNNN_TXT unit is used to manipulate data in the MNNNN.TXT data file
found in node 1's MWORK directory. The MNNNN_TXT unit is declared in
PBAPI10.INC as follows:
FUNCTION's below are from the MNNNNT.PBU Unit and DECLAREd in PBAPI10.INC.
FUNCTION MNNNN_TXT_OPEN(c AS INTEGER)
FUNCTION MNNNN_TXT_READ() AS STRING
FUNCTION MNNNN_TXT_CLOSE()
---------------------------------------------------------------------------
** EXTERNAL FUNCTION USED BY MNNNN.TXT UNIT BELOW **
FUNCTION MNNNN_HDR_GetOITF() AS LONG
FUNCTION MNNNN_HDR_GetML() AS LONG
---------------------------------------------------------------------------
Starting with TriBBS 10.0, the Mnnnn.txt files no longer use compression.
Each message is save as one large null-terminated C - string, in PowerBasic
this would be CHR$(0). Furthermore, each line in the message is terminated
by a carriage return '\r', in PowerBasic this would be CHR$(13).
---------------------------------------------------------------------------
MPORTANT: TBNode1sMainDirectory must be set to node 1's main directory
before calling this function.
MNNNN_TXT_OPEN(c AS INTEGER)
The MNNNN_TXT_OPEN function opens the Mnnnn.txt data file, where nnnn is
specified by "c", in node 1's MWORK directory.
MNNNN_TXT_READ() AS STRING
This form of the MNNNN_TXT_READ function returns a pointer to the message's
text as one long string for the current open record.
MNNNN_TXT_CLOSE()
The MNNNN_TXT_Close function closes the Mnnnn.txt data file in node 1's
MWORK directory.
---------------------------------------------------------------------------
This is all for this Unit for now, I plan on falling back to this Unit and
adding more Functions as I progress with other Units in this API.