Skip to content

794b11cd ac5e 4f4f 2163 486bbcdcd5ce

Fernando Garcia edited this page May 8, 2018 · 1 revision

PieceModel.Lenght Property

Additional header content

Gets or sets the length in characters of the piece.

Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public int Lenght { get; set; }

VB

Public Property Lenght As Integer
	Get
	Set

Property Value

Type: Int32
Length in characters of the piece.

Exceptions

 

Exception Condition
ArgumentOutOfRangeException value is less than zero
- or -
value is greater than lenght of Reference property minus property value From.

Remarks

ITEE Object Element Usage

<Piece Lenght="int" .../>

Compatibility table with native writers.

Comma-Separated Values
CsvWriter
Tab-Separated Values
TsvWriter
SQL Script
SqlScriptWriter
XML Spreadsheet 2003
Spreadsheet2003TabularWriter
X X X X
A X value indicates that the writer supports this element.

Examples

Suppose we have the following input data: XML

<?xml version="1.0" encoding="utf-8"?>
<ARD740>
  <R740D01 _x0023_LINE="10" SFLDTA="4 60027           27        55        75        13   20/02/13 " ... />
  <R740D01 _x0023_LINE="20" SFLDTA="4 61535            3                   2             08/03/13 " ... />
  ...
  ...
</ARD740>

Now we create the collection of pieces:

XML

<Pieces Name="SFLDTA_Pieces" Reference="SFLDTA">
  <Piece Name="DCALL" From="0" Lenght="2"/>
  <Piece Name="NOCOL" From="2" Lenght="16" Trim="Yes" TrimMode="All"/>
  <Piece Name="SHOP" From="18" Lenght="10"/>
  <Piece Name="SIT" From="28" Lenght="10"/>
  <Piece Name="PIK" From="38" Lenght="5"/>
  <Piece Name="PKG" From="48" Lenght="5"/>
  <Piece Name="DUEDATE" From="53" Lenght="9" Trim="Yes" TrimMode="All"/>
</Pieces>

See Also

Reference

PieceModel Class
iTin.Export.Model Namespace

Clone this wiki locally