MIGetContentLen() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
ft:locale
en-US
Product name
MapBasic
ft:title
MapInfo MapBasic Reference
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:32:32.686000

Purpose

Gets the content length.

Syntax

MIGetContentLen( ByVal hContent As CString ) As Integer

hContent is a CString handle.

Return Value

The content length in number of characters or bytes. Zero could be either that the call fails or that content is empty. To determine the cause of the failure, call the MIGetErrorMessage() function.

Description

Use MIGetContentLen() to get the content length of the file in number of characters or bytes.