MIGetContentLen() 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 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.