Set Blocksize statement - 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

Sets the block size preference for the currently running session of MapInfo Pro.

Syntax

Set Blocksize Native { nBytes | default }

or

Set Blocksize NativeX { nBytes | default }

nBytes is a value that may range from zero (0) to 32767. If the value specified is less than 512, it rounds up to 512. Block size should be a minimum of 512, otherwise it will be rounded to nearest value divisible by 512.

default value is a block size of 16834.

Description

This command can be used to override the block size preference set in the Preferences.xml file for the currently running session of MapInfo Pro. You can issue this statement from the MapBasic window in MapInfo Pro.

Executing the command will not update the Preferences.xml file. Thus, the block size preference set using this command will not be applicable for the next sessions of MapInfo Pro.

Example

The following example will set block size preference of 30720 for Native tables created in the current session of MapInfo Pro:

Set Blocksize Native 30720

The following example will set default block size preference of 16834 for NativeX tables created in the current session of MapInfo Pro:

Set Blocksize NativeX default