DWStrCSetfunction
Returns a string containing a centered (padded) string.
Syntax
FUNCTION DWStrCSet (BYREF wszSourceString AS CONST WSTRING, BYVAL nStringLength AS LONG, BYREF wszPadCharacter AS CONST WSTRING = " ") AS DWSTRING
Parameters
| Name | Description | |
|---|---|---|
wszSourceString | The string to be justified. | |
nStringLength | The length of the new string. | |
wszPadCharacter | The character to be used for padding. If it is not specified, the string will be padded with spaces. |
Description
Returns a string containing a centered (padded) string.
Example
DIM dws AS DWSTRING = DWStrCSet("FreeBasic", 20, "") ' Output: "FreeBasic"
Reference
- Include file
DWSTRProcs.inc - Defined in AfxNova/DWStrProcs.inc:1134
- Documented in String Management/DWString Procedures.md
- Topic: String Procedures