StringTypeLength Property
Gets the number of characters within the string.
Namespace: TwinCAT.Ads.TypeSystem
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public int Length { get; }Property Value
Int32
The length of the string (bytes for UTF8)
Remarks
If UseUTF8StringValues in PLC Control is on, then every standard string is interpreted as UTF8 string. Additionally the string lengths now get the meaning of byte size!!!
Reference
StringType Class TwinCAT.Ads.TypeSystem Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026