Graphics

 View Only
  • 1.  Can't Start First Text Line with a Quotation Mark - Visual Logic

    Posted 05-25-2016 01:34

    I created a Fullscreen that changes which group of text is showing depending on how many lines of text are populated. I did this using Visual Logic. For some reason, if I put a Quotation Mark as the first character on the first line, no text will show up, no matter what is typed after it.

    Can anyone explain this?



  • 2.  RE: Can't Start First Text Line with a Quotation Mark - Visual Logic

    Posted 05-25-2016 04:09
    I should add that if I type something into the second line, then the first line pops up, unless the second line also starts with a quotation mark. Doesn't make much sense to me. I could go back to using scripting, which didn't seem to cause this problem, but it's a lot of scenes to have to redo.
    #XPression


  • 3.  RE: Can't Start First Text Line with a Quotation Mark - Visual Logic

    Posted 05-25-2016 04:13
    And I should clarify further that it's ANY symbol, not just quotation marks. Still doesn't make sense to me.
    #XPression


  • 4.  RE: Can't Start First Text Line with a Quotation Mark - Visual Logic

    Posted 05-25-2016 23:11
    Can you upload a sample?
    #XPression


  • 5.  RE: Can't Start First Text Line with a Quotation Mark - Visual Logic

    Posted 05-26-2016 02:25

    Here's a 5 Line scene I have that doesn't work correctly. If you go into the "5 Group" group, I entered text on "Line 1" starting with a quotation mark, and as you can see, nothing shows up. If you start entering text on the "Line 2," "Line 1" will appear. If you take the quotation mark out of "Line 1" it will also appear.

    I'm running version 5.7, build 3064

    Thanks!

    https://we.tl/L6yde3CGMs

     

     


    #XPression


  • 6.  RE: Can't Start First Text Line with a Quotation Mark - Visual Logic

    Posted 05-26-2016 19:18

    The problem is in your visual logic. You should be using the "String Length" block and "Greater Than" block to determine if there is text in a line.

    Your visual logic was using a String Compare and checking if the text was greater than the string "0" in order of the ASCII table. So any letter would be above 0, but any special characters would be below 0...

    See my changes below; I only changed this for the first line; so you will need to fix all the other lines.. In the Greater Than block; make the Base value 0.


    #XPression


  • 7.  RE: Can't Start First Text Line with a Quotation Mark - Visual Logic

    Posted 05-27-2016 05:08

    Thanks! That worked, though it took me a while to figure out how to make it so the other groups were not visible when the larger groups were supposed to be. For example, when I first started changing things all the groups were visible. I ended up with the attached screenshot.


    #XPression