Hello!
Thank you for this forum - there is a lot of very useful information here.
I am trying to write a Karel program that will run a TP program and then clear the program from memory when the TP program is complete (eventually this will become part of a loop to run many programs). I have some code that looks like:
GET_TPE_PRM(1, data_type, dummy_int, dummy_real, file_name, status)
RUN_TASK(file_name, 0, FALSE, FALSE, 1, STATUS)
PROG_CLEAR(file_name + '.tp', PBR_ALLTYPE, status)
This successfully runs the TP program, which is specified as an argument to the Karel program. However I need the program to wait until the task is finished before trying to delete it. Would putting it in STEP mode do this? How do I even put this into STEP mode? I've read through the Karel programming help documentation that came with Roboguide and haven't managed to figure this out. Any advice is greatly appreciated!
Thank you!
Christina