.NET Framework Class Library
PDMSystem.AddZerosLeft Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > PDMSystem Class > PDMSystem Methods >

.NET Framework Class Library
PDMSystem.AddZerosLeft Method

Add 'zero' characters to the left of a string for output formatting.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function AddZerosLeft ( _

str As String, _
maxfieldsize As String _
) As String

C#

public string AddZerosLeft(

string str,
string maxfieldsize
)

Visual C++

public:

String^ AddZerosLeft(
String^ str,
String^ maxfieldsize
)

JavaScript

function addZerosLeft(str, maxfieldsize);

Parameters

str

Type: System.String
the string to adding space to

maxfieldsize

Type: System.String
the max size of the field to fill

Return Value

The input string str added of 'zeros' before it (up to maxfieldsize).

Remarks

See Also

PDMSystem Class

PDMSystem Members

MwPDMApi Namespace