Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

String to long for textbox

mrupp
2020-08-21
2020-08-21
  • mrupp - 2020-08-21

    Hello,
    I've got the following problem. I will dispense a string with variable length in an textbox. the String is longer than 100 signs. The textbox dispence only the first 80 in two rows. the textboxs is big enough for a longer text. is there something I have not seen?
    Regards,
    Moritz

    the String I will dispense in the textbox:
    'TExt text text text text 5 text text text text text 10 text text text text text 15 text text text text text 20 text text text text text 25'

    in the picture is the textbox

     
  • m.prestel - 2020-08-21

    Hey,
    could you please attach a small project.
    I have no textbox available as an element.

    Best regards,
    Marcel

     
  • mrupp - 2020-08-21

    Sorry my codesys is in german Language.
    Textbox ist the literal translation from Textfeld in english, I don't know the technical term.
    in the picture you see the project with open settings from the textbox.

     
  • m.prestel - 2020-08-21

    Hey,
    this element is called textfield in the english translation.

    Could you check your variable declaration?
    Is it just STRING or STRING(255)?
    A variable declared as STRING is really a STRING(80)

    Best regards,
    Marcel

     
    πŸ‘
    1
  • mrupp - 2020-08-21

    Tank you,
    that was the reason why.

     
    πŸ‘
    1

Log in to post a comment.