Tab delimiter

  • Would it be possible to add support for special characters other than just newline? Particularly, it would be really nice to be able to use the tab character as a delimiter in tokenat and tokencount. I tried '\t' but it didn't work.

    Thanks,

    -- cacotigon

  • A way to use the tab in Construct that I've used in CC is to open notepad type a tab, select it, copy it (Ctrl+C), then paste it in Construct with Ctrl+V.

  • That's a great workaround! Seems to work just fine, much appreciated!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Nuts, well, it works in all cases, however, if you put it in a global variable by itself as soon as you save project/exit and reload it, the program sets the value to an empty string.

    However, it seems to remain if used anywhere else, for example, if you had an action that stated: "s" + "<tab>" + "h"

    then it would remain between save/loads.

    Ashley: Do you think scirra could add a quick change such that global variables would support using a tab. The reason that i mention this is that I have a global variable called COL_DELIMITER, which is currently a tab, but may change at a later time. Thus, I would rather avoid hardcoding the delimiter string(tab, newline, character, etc) in the dozens of tokenat/tokencount statements in the code.

    Thanks,

    -- cacotigon

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)