DBWAddSpacesRight

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem >

DBWAddSpacesRight

Description

Add spaces to the right side of a string for output formatting.

Syntax

Function DBWAddSpacesRight(stringmaxfieldsize)

Parameters

string

the string to add spaces to

maxfieldsize

the max size of the field to fill

Return Values

The input string str added of spaces after (up to maxfieldsize).

In case of str is longer than maxfieldsize it returns str as it is.

Example

mystring="hallo!"
maxfieldsize=10
str=DBWAddSpacesRight(mystring, maxfieldsize)
msgbox mystring