Cut a part of a directory to get a string not longer than lWidth including an appendix szAppendix.

Namespace: ExpSuite
Assembly: FrameWork (in FrameWork.exe) Version: 0.10.2.0

Syntax

Visual Basic
Private Function CutDirName ( _
	szDir As String, _
	lWidth As Integer, _
	szAppendix As String, _
	NoBackslash As Boolean _
) As String

Parameters

szDir
Type: System..::..String
String containing directory.
lWidth
Type: System..::..Int32
Width of the label.
szAppendix
Type: System..::..String
Additional appendix of the string. Will be considered calculating the total witdh of the caption.
NoBackslash
Type: System..::..Boolean
Optional: If boolean is true, no backslash is appended to szDir.

Return Value

Cut string

Remarks

Parts of szDir between two "\" will be removed to match the width of lWidth+Width(szAppendix). If szDir ends with a backslash, it will be removed After cutting a backslash is appended to the end of the cutted string (if optional boolean NoBackslash is not true), then the szappendix is appended. Works for frmMain only.

See Also