Announcement

Collapse
No announcement yet.

Input with multiple lines

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Input with multiple lines

    I have a project that I need that depending on what is typed in the box, it advances to the next page, I already have the following code that I put in a button and it works well:

    Code:
    Correct = "XXX"
    Written = Input.GetText("Input1")
    if Correct == Written then
    Page.Jump("Page2")
    else
    Dialog.Message("Warning !"," Incorrect Password.")
    end
    How do I make this code understand multiple lines?
    Like that

    XXX
    XXX
    XXX
    XXX

    Is there a way to make an input undestand multiple lines? Thanks!

  • #2
    I did it! Heres de correct code.

    Code:
    pass_correcto = "XXX\r\nXXX\r\nXXX\r\nXXX"
    pass_escrito = Input.GetText("Input1")
    if pass_escrito == pass_correcto then
    Page.Jump("Page2")
    else
    Dialog.Message("Atenção !"," Senha Incorreta.")
    end

    Comment


    • #3
      Inputs.apz

      Comment


      • #4
        @colc
        agree with you.... it's a stupid and anti-aesthetic idea


        @Ewertongba99
        if you really want to use an unencrypted password at least do not enter it in the internal code



        colc example rework
        Input_rework.apz

        Comment


        • #5
          Thank you guys!

          Comment

          Working...
          X