MISaveContent() 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

Saves the content to a given file.

Syntax

MISaveContent( ByVal hContent As CString, ByVal strFileName As String
	As SmallInt

hContent is a CString handle.

strFileName is a string that identifies the file name that receives the content.

Return Value

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

Description

This function is used to save the content to a file. It will create a new file with the given file name. If the file exists already, it is truncated to 0 length.