Navigation

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

    Strings not consistent when using string functions on same string variables

    Bug Reporting (FUZE 4 Nintendo Switch)
    1
    1
    123
    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.
    • Discostew
      Discostew F last edited by

      So I was testing my strings to remove all white spaces using "strReplace" in this fashion

      strd = strReplace( strd, " ", "" )
      

      As you can see, the string variable I sent in is the same one that would accept the result. Using the oh-so-helpful "breakPoint" function circulating around, I examined the string afterwards and saw no white spaces. However, a few lines after, when I would grab sections of the string, my program would have issues. I looked into those sections, and found that they contained white spaces, which shouldn't have been there since they are being grabbed from the string used as the result for "strReplace", which again is the same one used as input.

      However, if I examined the string using "breakPoint" before using "strReplace", my program would run fine, and no trace of white spaces were found in the string. Of course if I used different string variables throughout this process, no problems would occur, but I honestly feel that to be bad because I'm working with large strings, and feel duplicating them would not be good for memory.

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