Page 1 of 1

Macro with a return string up to 250 characters

Posted: Fri May 05, 2017 4:24 pm
by tiny
Is it possible to create a macro with a return string up to 250 characters?
This function would be very important!

Christina

Re: Macro with a return string up to 250 characters

Posted: Fri May 05, 2017 4:49 pm
by Benj
Hi Christina,

Yes this is possible, there is no hard limit on the size of the string returned from a macro.

Unless your using an 8-bit PIC which may struggle with a single string larger than 256 bytes. In this case I believe the compiler should work around the problem for you so you don't have to.

Re: Macro with a return string up to 250 characters

Posted: Fri May 05, 2017 5:55 pm
by Benj
Hmm just tried this and it seems the simulation is hitting a limitation. The embedded code should be fine.

Investigating this now.

Re: Macro with a return string up to 250 characters

Posted: Fri May 05, 2017 7:55 pm
by tiny
Thanks Ben for the quick reply.
I use the ECIO40P16, do not know whether it only occurs in the simulation. In my program I use for passing global variables since I had in the simulation of this problem.
Only 20 characters are possible in the Simulation.

Christina