CoderByNature
Member
Hey all, was wondering if it was possible to shift values in an array of strings?
I have a database that I am loading up with "Users" in the form of strings, String[64], my dilemma comes when I am attempting to delete the user from the database.
What I would love to do is take the found position of the data I want to delete and then copy the entire array from below that value up 1. So if I found the User data I want to delete at Userdata[8], then shift values Userdata[9]-[63] to Userdata[8]-[62] and write 0 in value Userdata[63].
So far I have tried COP(UserData[FSC_User.POS+1]) to UserData[FSC_User.POS] with length of (63 - FSC_User.POS) and an FAL command with the same logic. Neither have worked
Just wondering if this is possible or if there is a better way to do it
Thanks in advance for any guidance here
I have a database that I am loading up with "Users" in the form of strings, String[64], my dilemma comes when I am attempting to delete the user from the database.
What I would love to do is take the found position of the data I want to delete and then copy the entire array from below that value up 1. So if I found the User data I want to delete at Userdata[8], then shift values Userdata[9]-[63] to Userdata[8]-[62] and write 0 in value Userdata[63].
So far I have tried COP(UserData[FSC_User.POS+1]) to UserData[FSC_User.POS] with length of (63 - FSC_User.POS) and an FAL command with the same logic. Neither have worked
Just wondering if this is possible or if there is a better way to do it
Thanks in advance for any guidance here