MIGetContentBuffer() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Gets the content in the format of a string with the given size.

Syntax

MIGetContentBuffer( ByVal hContent As CString, pBuffer As String, 
	ByVal nLen As Integer As SmallInt

hContent is a CString handle.

pBuffer is a reference to a string that receives the content of the file.

nLen is the size of pBuffer in number of characters or bytes.

Return Value

Nonzero if successful; otherwise 0. To determine the cause of the failure, call the MIGetErrorMessage() function.

Description

Use MIGetContentBuffer() to get the content of the file in string format with a given size. You have to allocate memory for pBuffer before calling this function.