Skip to content

48cd970a 4db3 6876 584c e1a79d65ef04

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

PieceModel.From Property

Additional header content

Gets or sets the initial character of the piece into field reference.

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 From { get; set; }

VB

Public Property From As Integer
	Get
	Set

Property Value

Type: Int32
The zero-based initial character position of a piece.

Exceptions

 

Exception Condition
ArgumentOutOfRangeException value is less than zero
- or -
value is greater than length of Reference property.

Remarks

ITEE Object Element Usage

<Piece From="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