I don't understand this post. Can you elaborate step by step what you're doing and refer to the SSK feature(s) you're using?
Also, define what "Ctrl Z" means to you. There is no uniform meaning for that key input combination.
Note: As part of your description you could explain your steps as:
1. I have this ABCDEFG stored in a variable (or stored as a field in a table; or stored in file, or whatever the case is)
2. I press CTRL+Z
3. I want the string to now be ???????
Be very deliberate, clear, concise, and precise in your description and again, reference the specific SSK feature(s) you're using.
Reading again really was confusing.
Well, I'll explain the whole context.
(There's no way you can type ABCDEFG, that's not how it works.)
I ask the user to fill out a form, every time the user has just completed this form I update a .CSV file with a new data entry. (This .CSV file is a huge table to open in EXCEL)
Every time the user has just completed the form and hit the "forward" button I have a new line in my .CSV file and I can identify this last line by the penultimate value of line break (/n).
Think of the following, each "answer" are several values in several columns, and in my CSV file I have the following:
Answer1 /n
Answer 2 /n
Answer 3 /n
Answer 4 /n
Answer 5 /n
Answer 6 /n
....
Answer 444 /n
Answer 445 /n
Answer 446 /n
Answer 447 /n
When the user presses "Ctrl + Z" it is because he entered wrong data in the last response, so I have to delete from my .CSV file (ie, I have to delete from my variable) the last response entered.
Only he can press this repeatedly, following the example above, the file would look like this after the user hit the undo button:
Answer1 /n
Answer 2 /n
Answer 3 /n
Answer 4 /n
Answer 5 /n
Answer 6 /n
....
Answer 444 /n
Answer 445 /n
Answer 446 /n
And if it squeezes twice, I will have the following value inside my CSV file
Answer1 /n
Answer 2 /n
Answer 3 /n
Answer 4 /n
Answer 5 /n
Answer 6 /n
....
Answer 444 /n
Answer 445 /n
And if you press again ...
Answer1 /n
Answer 2 /n
Answer 3 /n
Answer 4 /n
Answer 5 /n
Answer 6 /n
....
Answer 444 /n
This inside the corona is read inside a common variable, which was the example of the beginning of the topic.
The stored variable is as follows:
output = Response 1 / n Response 2 / n Response 3 / n Response 4 / n Response 5 / n ...
Then I would like to know how I can remove only the last response from the variable.
*NOTE: Each answer is not just a value. in an answer I have several values that are organized into different columns in excel. That is, I have this:
Answer 1 = "Something"; "Another thing" ; "another thing" ; "another thing" ; "another thing".