From your second post in this thread:
Please remove the brackets after has_textual_declaration
because it is a property and not a method. This property is only to check if the object has an ST based declaration. You get the text with the property text
, e.g. gvl.text, and modify it with one of the methods, e.g. gvl.replace(modifiedDeclaration).
From your third post:
you can only get the children of the object in the project structure. But variables are not children of the GVL object. You can only read or modify the ST based declaration.
Check out the CODESYS store: http://store.codesys.com/CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions