DateFormula Size
jemmy
Member Posts: 247
Folks,
Anyone could tell me what is the calculation of size (bytes) for date type = DateFormula.
I found an ambiguous definition under Navision 3.7 and Navision 4.0.
But when I tried with SQL Option for Navision 4.0, I got 32 bytes.
Thanks in advance,
Jemmy
Anyone could tell me what is the calculation of size (bytes) for date type = DateFormula.
I found an ambiguous definition under Navision 3.7 and Navision 4.0.
But when I tried with SQL Option for Navision 4.0, I got 32 bytes.
Thanks in advance,
Jemmy
0
Comments
-
The "Application Designer's Guide" sais 4bytes. But maybe he uses a different datatype in SQL, so it is bigger than the 4 bytes.0
-
Yes Tim, you are right. I also found the doc said 4 bytes.
But it doesn't match with the fact....
I found 32 bytes and the data type is VARCHAR, any clue? :-s
Jemmy0 -
Cool -- experimenting crashes the v4.0 client...
Here's what I did:- Run the Payment Terms form.
- In the "Due Date Calculation" field, I entered 29 chars as '1D+1D+1D...' (you get the idea.) That worked fine.
- Then, I added another '+1D' -- got the following error message:
----------------------------------------------- Microsoft Visual C++ Runtime Library ----------------------------------------------- (X) Buffer overrun detected! Program: ...Business Solutions-Navision 400\Client\fin.exe A buffer overrun has been detected which has corrupted the program's internal state. The program cannot safely continue execution and must now be terminated. [OK]Click ok -- no Dr. Watson... the client just disappears.
Just for haha's, I tried it again, only this time, I entered a really long string (60 chars or so -- the text box doesn't seem to have a limit). Results: This time I got Dr. Watson. Looks like the C++ Runtime buffer overflow detection can't handle a 'really big' buffer overflow...
So, for v4.0 at least, the answer to the 'how long' question is something like "be really careful not to go over about 30 chars..."0 -
And that agrees with the 32 bytes that jemmy mentioned. 1 byte is used for the length. So if you enter more than 31 signs, a buffer overrun will be the result.0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions