Karel CALL_PROG with parameters

  • Hello,


    I wrote a Karel program which calls a TPE program (named 'TEST')

    My TPE program uses parameters calculated by Karel.

    I would like to pass Karel result to TPE and use AR[...] in the TPE program.

    I tried to write CALL_PROG('TEST (1,5)', prog_index) but it doesn't work, I get an error during program execution.


    Is it possible to call a TPE program with parameters from Karel? Or do we have to use registers?

  • Hi SkyFire,

    yor example is a routine... its possible to work with "Arguments" in there.. but what i understood was that he wants do pass Values to a .TP program.


    correct me if iam wrong.

    regards

Advertising from our partners