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

Prompts the user to select one sheet from a seamless table, and then returns the name of the chosen sheet. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

GetSeamlessSheet( table_name )

table_name is the name of a seamless table that is open.

Return Value

String, representing a table name (or an empty string if user cancels).

Description

This function displays a dialog box listing all of the sheets that make up a seamless table. If the user chooses a sheet and clicks OK, this function returns the table name the user selected. If the user cancels, this function returns an empty string.

Example

Sub Browse_A_Table(ByVal s_tab_name As String) 
	Dim s_sheet As String 

	If TableInfo(s_tab_name, TAB_INFO_SEAMLESS) Then 
		s_sheet = GetSeamlessSheet(s_tab_name) 
		If s_sheet <> "" Then 
			Browse * From s_sheet 
		End If 
	Else 
		Browse * from s_tab_name 
	End If 

End Sub 

See Also:

Set Table statement, TableInfo() function