Development Documents
04-Feb-2020
ISML Function - pad()
Document Properties
Kbid
247R66
Added to KB
20-Jun-2013
Status
online
Product
  • Intershop 7.1
  • Intershop 7.3
  • Intershop 7.5
  • ICM 7.6
  • ICM 7.8
  • ICM 7.10
  • ICM 12
Last Modified
04-Feb-2020
Public Access
everyone
Doc Type
References
Product
  • Intershop 7.2
  • Intershop 7.4
  • Intershop 7.4 CI
  • ICM 7.7
  • ICM 7.9
  • ICM 11
  • ICM 13
Document Link
https://knowledge.intershop.com/kb/247R66

Name

pad()

Short Description

allows to align text left-justified or right-justified in a field

Table of Contents

Product Version

6.5

Product To Version

 

StatusNew Labels

Introduction

Justifies text to the left or right side of a field. For example, if you need to print out prices in a list, you probably want them exactly aligned at one side.

pad()has two parameters. The first specifies the source string to be processed. The second defines the field width as a positive or negative number of characters.

Syntax

pad( <source string>, <padding value> )

Example

<ISPRINT value = "#pad(Product:Price,-10)#">
// returned string: " 5.00 EUR"

Parameters

source string

source string = String
The string to be processed is a required parameter.

padding value

padding value = Integer
The padding value is a required parameter.
Either a negative or positive integer value. A positive number produces left-aligned text, a negative number right-aligned text (see example above). If the source string is longer than the padding value, the output string is truncated on the right.

Reference - ISML Functions

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Website, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Home
Knowledge Base
User Manuals
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.