Hi,
i've create a dataport with four dataitems. one dataitem i only you use to create a total for the next dataitem. so this dataitem do not have any dataportfields, but when i use the export it creates a empty line. how can i change the settings that i don't have the empty line.
thanks
0
Comments
Just type these 6 characters so it spells <None>.
If you still want the other data-items to generate a newline, then you could add code for that in OnPreDataItem:
thank you for your reply, but what means the Textmode is true?
thanks
Marco
Specifies the mode in which the file will be opened when File.OPEN is called.
If SetTextmode is true, the file will be opened as an ASCII file. If SetTextmode is false, the file will be opened as a binary file.
ASCII file (the easiest way)
Put this in the OnInitDataport:
And in the OnPreDataItem, not in the first data-item and not in the one without output:
De default value of DataItemSeparator is <NewLine><NewLine>.
You don't want this in every data-item, so you program it in the ones you need.
Binary file
If you would use a binary file (TEXTMODE=false), then you could create the newlines in a different way.
Define Globals:
CR Char
LF Char
OnPreDataItem: