StrPadRightW (FUN)

FUNCTION StrPadRightW : BOOL

This function generate 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. It will return FALSE and does no concatenation if one of the strings is NULL or the buffer size is not big enough.

InOut:

Scope

Name

Type

Comment

Return

StrPadRightW

BOOL

Input

wPadChar

WORD

The padding character filling the space from right

pstFrom

CharBufferPtr

simply a pointer to byte

pstTo

CharBufferPtr

simply a pointer to byte

diBufferSize

DINT

the buffer size of pstTo