Hello Everyone,
I have searched for this but not finding quite what I need. I have a webpage with a form on it that creates a csv file that gets imported to a NAV form (NAV 3.7a). One of the fields is an address. NAV limits the text length to 30 in the related address field. The problem is some people have an address that is longer than 30 characters that they are entering and when it gets imported we get a text to text overflow. I want to chop off anything after 30 characters before it enters the text field because I do not want to have to resize every address space throughout Navision.
Thank you for your time and effort
0
Comments
Look at using the DELSTR() function in combination with the MAXSTRLEN
ex -
Split example:
If Strlen > 30 then find the last Space (or special charakter like , or before 30 and store the lenght from 1 .. SpacePosition in address Field 1 and the second part in address field 2 (also only the lenght of the maxstrlen of the address 2 field)
Regards
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.