Fill string-type data blanks
When the input string data is smaller than the set Size, it may be necessary to fill the rest with spaces.
In this case, use the option SetAsciiFillSpace () which automatically fills the space with the back of the string.
SetAsciiFillSpace (0)
: Do not fill with blanks even if the length of the input string is less than the given length. (XCom Default)
SetAsciiFillSpace (1)
: When calling SetAsciiItem (), if the length of the string is smaller than the given length, it will be blanked by the given length.
Note
This applies to data items of all character strings in messages used by XCom. If you want to use only certain data items because of
, you must fill in the spaces directly in your coding.