I have used string with lenght 1000 en I’m filling it up with four text fields from a table. The moment that string reaches 405 characters I get error. First error 8 in module 24 and from about 500 characters there is an error in fin.exe and the client shuts down. We are using Navision Attain 3.60. Thanks Marcela
I have had the same problem. Very frustrating. You will have to check the length of the string and ever so often put a ‘’ linefeed character into your string. So the control (Label/Textfield) should be set to multiline = yes and HorizontalAlignment = left and verticalalignment = top. In this way you are forcing text wrapping. If the problem still persists then add more controls. Know at what character the previous control ends and then start the putting the values in the new control(line). Lets say because of font sizes that the first line holds 140 characters then load the first 140 in the first control that is a single line control. Then simply read the 141 to the 280 character into the next control. Making it look like a paragraph but it is simply 1-10 single lines simmulating a paragraph. Not very nice and extremely messy to me but working within a framework like Navision is very limited. Man, what I wouldn’t give for some good old 3rd generation languages like Java. You actually had control over your programming there and could do whatever you or your client could imagine. Even make sparks fly out of the screen.
Hi, Could you give us more information? You are using 4 text fields (250 chars) from a Navision table and concatenate them in code to display them on a report? You can have a list of known Navision errors through this link: http://www.navisioner.com/downloads/docfile/error%20in%20module.xls What is stored in those fields? Maybe you could have the same approach used by the comment line table…
My question is why?, If we know what you want a 1000 chr$ string for there might be a better way. you cannot print it! Add a textbox to your report source = Field1+’ ‘+Field2+’ ‘+Field3+’ '+Field4 Or source = Field1+Field2+Field3+Field4
Hi, David I tried your suggestion but it is still the same. My fields are string (it is a comment but as the users need more then 250 characters so I used 4 text fields in the table. I will try to put some line feeds and see if that would help. But it is really problem of printing it. Is there any limitation of a lenght of a string in a text box (with multiline property -yes? Or is there any property that shoud be changed to make it work? thanks Marcela
You are right Marcela. I tried to have a textbox in a report (MultiLine=Yes) showing a variable of 1000 chars long and I have the same error. I tried Source = Field1 + Field2 + Field3 + Field4 and I have the error. I also tried: MyBigString = Field1 + Field2 + Field3 + Field4; Source = MyBigString
And I still have the error. I was using 3.60 native. If no hotfix resolves the issue. You’ll have to find a way to concatenate your fields together to have smaller strings to display, or have one textbox per Field, displayed on different lines.