StrPadLeftW (FUN)
FUNCTION StrPadLeftW : BOOL
This function generates a padding string and concatenates it with |pstFrom| to |pstTo| if the |iBufferSize| from |pstTo| is big enough. The function will do its work either with native IEC-Strings or with strings coming from external functions.
- InOut:
Scope
Name
Type
Comment
Return
StrPadLeftWBOOLIt will return
FALSEand does no concatenation if one of the strings isNULLor the buffer size is not big enough.TRUEotherwiseInput
wPadCharWORDThe padding character filling the space from left
pstFromPointer to the source string
pstToPointer to the destination
diBufferSizeDINTThe buffer size of |pstTo|