Is it possible to create a macro with a return string up to 250 characters?
This function would be very important!
Christina
Macro with a return string up to 250 characters
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Macro with a return string up to 250 characters
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Macro with a return string up to 250 characters
Hmm just tried this and it seems the simulation is hitting a limitation. The embedded code should be fine.
Investigating this now.
Investigating this now.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Macro with a return string up to 250 characters
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
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