Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xpagemax()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XPAGEMAX()
Get the maximum page size for the current Btrieve configuration

Syntax
N_XPAGEMAX()

Returns
The maximum page size that your program can open in the current Btrieve 
configuration.

Remarks
Normally used in conjunction with Btrieve/N (stand-alone Btrieve).

Your program can use N_XPAGEMAX to determine if  a large enough /P parameter 
was specified when Btrieve was loaded.  If no /P paramter was specified, the 
default for Btrieve/N is normally 2048.

If you attempt to open a file with a page size larger than permitted by /P, 
you will receive error 24: Page Size Error.

Example
N_XLOGIN()
IF N_XPAGEMAX() < 512 * 7
    ? "Btrieve not configured properly"
     QUIT
ENDIF


See Also: N_XPAGESIZE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson