Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Some useful text functions

    Functions
    6
    14
    1362
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      petermeisenstein F @pianofire last edited by

      @pianofire Yeah i know. its very kind that you posted a summary of all functions.

      1 Reply Last reply Reply Quote 0
      • F
        faz808 F last edited by

        Very, very useful. Thanks a bunch ...

        1 Reply Last reply Reply Quote 0
        • vinicity
          vinicity F last edited by

          Yes, very useful indeed. Any chance for a getInk() function?

          pianofire 1 Reply Last reply Reply Quote 0
          • pianofire
            pianofire Fuze Team @vinicity last edited by

            @vinicity Not sure how you could do that at the moment as there is no getPixel() function

            vinicity 2 Replies Last reply Reply Quote 0
            • vinicity
              vinicity F @pianofire last edited by

              @pianofire said in Some useful text functions:

              @vinicity Not sure how you could do that at the moment as there is no getPixel() function

              Yeah, thought as much. Any chance that getPixel() is coming to Fuze?

              1 Reply Last reply Reply Quote 0
              • pianofire
                pianofire Fuze Team last edited by

                There is a feature request. Not scheduled as yet

                1 Reply Last reply Reply Quote 1
                • vinicity
                  vinicity F @pianofire last edited by

                  @pianofire said in Some useful text functions:

                  @vinicity Not sure how you could do that at the moment as there is no getPixel() function

                  I guess I could implement my own ink() variant that sets the ink, and saves the value in a global. Then I could do a getInk() that returns the value...

                  pianofire 1 Reply Last reply Reply Quote 1
                  • pianofire
                    pianofire Fuze Team @vinicity last edited by

                    @vinicity That should work

                    1 Reply Last reply Reply Quote 0
                    • F
                      faz808 F last edited by

                      Any chance for a solution to my simple problem, i.e. MID$("a simple text", 4, 1). Tried everything - including writing to a file, reading it back, seeking etc. File write limit keeps popping up. So that idea went out of the window. Without simple string functions Fuze is now becoming a nightmare. All I'm trying to do is split - as an example - "D4" into "D" and "4". (chess notation by the way for my chess pgn reader program). Any help would really be appreciated. I'm now desperate! Thanks in advance.

                      1 Reply Last reply Reply Quote 0
                      • R
                        Richard F last edited by

                        You can access a string like an array so in your example text[0] would give you "D" and text[1] would give you "4". If you need more than 1 character you can use a colon eg text[0:1] would give "D4".

                        1 Reply Last reply Reply Quote 1
                        • mozipha
                          mozipha last edited by mozipha

                          Also re: file write limit – the write limit occurs when the file is repeatedly opened and closed in a short period of time and not strictly when the write() function is called repeatedly (that is, it occurs when the file is repeatedly written to long-term storage and not when the file is modified in RAM). The write limit can be avoided by keeping the file open while you do reading/writing and only closing it once you're completely done accessing it.

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post