49d @verb #1180:"edit_todo_item" this none this rxdo #9633 @program #1180:"edit_todo_item" this none this item = this.todo_list[args[1]] player:tell("Editing ToDo item: ", item[1]) while ($command_utils:yes_or_no("Would you like to change a value?", 2) != 0) response = $command_utils:yes_or_no("What would you like to change?", 0, {"Name", "Short description", "Due date", "Details"}) if (response == "Name") string = this:show_get_string(0, item[1]) if (string != "") item[1] = string endif elseif (response == "Short Description") string = this:show_get_string(0, item[2]) if (string != "") item[2] = string endif elseif (response == "Due Date") string = this:show_get_string(0, item[3]) if (string != "") item[3] = string endif elseif (response == "Details") string = this:show_get_string(1, item[4]) if (string != "") item[4] = string endif else player:tell("That is not a valid choice.") endif endwhile this.todo_list[args[1]] = item player:tell("No longer editing ToDo item: ", item[1]) "Last modified by Dean (#9633) on Wed May 22 07:29:28 2002 MDT." . 0