maximum text parameter length?
Steve_Contris
Member Posts: 114
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?
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
-
Steve Contris wrote: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?
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.David Singleton0 -
Too bad you don't have BigText #-o0
-
Text variables on 2.6 were having that limitation (I think it was like 254 characters or so). It was increased with 3.0 and even more with 4.0 (right now there is a limit on 1024 chars on the variables). The field size limit is still on 250...Steve Contris wrote: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?
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.0 -
thanks for all the input. I am ending up just writing off what I need to a text file and I will read it in later.
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 infoWhat would Elvis do?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
