Graphics

 View Only
  • 1.  Questions of Visual Logic

    Posted 03-19-2021 00:26

    Hi everyone!

    I have a question about Visual Logic.

    I am using datalinq to input a texts from external source(for example, dashboard)

    My external source, which is a name, is in full name altogether in 1 row.

    But I want it to be showed in 2 rows in Xpression output.

    Is there any visual logic that I can use to make this?

    Thank you.

     

    Best regards,

    Brian



  • 2.  RE: Questions of Visual Logic

    Posted 03-19-2021 14:55

    You can use the Replace function block to search for a space in your Input string and replace it with a carriage return:

    The space is typed into Old String section of the Replace function block. The carriage return in typed into the Line Break text object. 

     


    #XPression


  • 3.  RE: Questions of Visual Logic

    Posted 03-20-2021 15:35

    You can also use the string position block to detect where a space or other item in a string is you are trying to look for.


    #XPression


  • 4.  RE: Questions of Visual Logic

    Posted 03-22-2021 02:14

    You can do this but be careful, some people will not have simple two word names. For example, if your guest is Tommy Lee Jones, the result probably won't be what you want. Separating it using the space before the last word can fail too (Tim Hardaway Jr., Rip Van Winkle, etc.).


    #XPression


  • 5.  RE: Questions of Visual Logic

    Posted 03-22-2021 10:44