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_xmemolen()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XMEMOLEN()
Get length of variable length field in current record

Syntax
N_XMEMOLEN()

Returns
Length of variable length field in current record.

Remarks
The value returned is the number of bytes in the variable length field in 
the current record. If the record does not contain a variable length field, 
or if the variable length portion of the record is empty, then the function 
returns zero.

If the variable length field is type 'ML', the length excludes the twobyte 
prefix field.

If the variable length field is type 'M', the length excludes the one-byte 
null trailer which RaSQL/B automatically adds to the end of the variable 
length data.  The null trailer is completely transparent to the application.  
If the variable length field is empty, the trailer is not stored.

Example
N_XSELECT('notefile')
? N_XSRECSIZ()  && Record length with memo
5034
? N_XMEMOLEN()  && Current memo len
4834



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