I am running into an apparent limitation on the size of a text parameter passed to a function in Navision 2.6. The compiler does not complain but it seems that if a parameter passed is defined as larger than somewhere around 250, what ends up getting passed is just '' - empty string.
I am needing this to be able to use the Mail codeunit to send emails with body text longer than 250 characters. Is this really a limit or am I doing something wrong here?
What would Elvis do?
0
Comments
Elvis would probably leave the building.
But you should try to either add more fields to parse the text, or add as an array or a temp table. There are a number of work arounds.
To pass more than 250 chars to the body, you can also "trick" things adding new functions to the codeunit to pass more than 1 variable as parameter.
What seems strange about all this is that I can read into a string of size 1000 with a binary mode file read and use most of the string functions using that long string just fine - except COPYSTR dang it.
So it seems that strings longer than 254 can be used as globals and with some string and file functions but passing as parameters anywhere else there is this limitation of 254...
again - thanks for the info