PROGRAM LEN_DEMO VAR STRING1: STRING; INT1: INT; END_VAR INT1:=LEN(IN:=STRING1); END_PROGRAM
Description
Function returns length of a string.
Inputs
Input
Type
Description
IN
ANY_STRING
Input string
Outputs
Output
Type
Description
=>
ANY_INT
String length
Application example
Cookies setting
To make sure that our site works in the best way possible and provides you with the best user experience, we recommend allowing all types of cookies. Below you have the opportunity to edit cookies by category, in line with your own preferences. For more see
List of Cookies.
Necessary cookies
These cookies are required to ensure proper functioning, security, and proper display on a computer or mobile phone, to save products in the shopping basket, and to make sure that filling in and submitting forms and the like all works properly. Technical cookies can be deactivated, but without them our site will not work properly.
always active
Statistics cookies
Statistics cookies help website owners understand how visitors use a website and how they can continue to improve it. They collect and share information anonymously.
Preference cookies
These cookies allow us to show you the website the way you know it. We display, for example, language, time, or display settings in line with your own settings.
Marketing cookies
We don’t want to bother you with inappropriate ads. These cookies allow us and our advertising partners to show only relevant adverts.
To make sure the site works the way you know it (consent to cookies)
It is importnat to us that you quickly find what you are looking for on our site, save a lot of clicks, do not see ads that do not interest you, and see the site in the view you are used to. That is why we need your consent to the processing of cookies - small files that are temporarily stored in your browser. By pressing the "OK" button, you agree to the setting of cookies so that we can provide you with meaningful and useful services based on your data. You can change your consent at any time on the Personal Data Processing Page.
More information