HomeDirectory$() 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

Returns a string indicating the user's home directory path. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

HomeDirectory$()

Return Value

String

Description

The HomeDirectory$() function returns a string which indicates the user's home directory path.

The significance of a home directory path depends on the hardware platform on which the user is running. The table below summarizes the platform-dependent home directory path definitions.

Environment Definition of "Home Directory"
Windows The directory path to the user's Windows directory.

Example

Dim s_home_dir As String
s_home_dir = HomeDirectory$()

See Also:

ApplicationDirectory$() function, ProgramDirectory$() function, SystemInfo() function