|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem > DBWAddSpacesRight |
Add spaces to the right side of a string for output formatting.
Function DBWAddSpacesRight(string, maxfieldsize)
string |
the string to add spaces to |
|---|---|
maxfieldsize |
the max size of the field to fill |
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.
mystring="hallo!"
maxfieldsize=10
str=DBWAddSpacesRight(mystring, maxfieldsize)
msgbox mystring