Welcome to Catalog Tips

Search more than 200 articles to learn more about creating and automating your product catalogs

Tip: Start typing in the input box for immediate search results.

< All Topics
Print

TRUNCATESTR – Remove last N characters from string

Overview

This Custom Field removes the last N characters from a string, where N is a defined integer.

Syntax

TRUNCATESTR(N)

Element
Description
N The number of characters to be removed from the end of the string.

Examples

TRUNCATESTR(2)

String TRUNCATESTR(2)
Ford Motor Company Ford Motor Compa
Toyota Toyo

TRUNCATESTR(2)

String TRUNCATESTR(4)
Ford Motor Company Ford Motor Com
Toyota To

See also

PARTSTR

LEFTSTR

RIGHTSTR

Table of Contents