XMLDA.NET Reference
DataBindFormat Class
Members  Example  See Also  Send Feedback
xmldanet Namespace : DataBindFormat Class

Glossary Item Box

Formatting and Transformation definitions.

Object Model

DataBindFormat Class

Syntax

Visual Basic (Usage)Copy Code
Dim instance As DataBindFormat
C# 
public class DataBindFormat 

Example

Visual BasicCopy Code
' define a formatting object with format xxxx.xxxxx and formula (x + (-2.0)) * 2.0 
   Dim fmt1 As DataBindFormat = New DataBindFormat("F5")
   fmt1.add = -2.0
   fmt1.multiply = 2.0
   ' display the double item value transformed and fix point formated
   staticDouble = OpcBind.Subscribe("Static.Simple Types.Double", Me.textBox2, fmt1)

   ' create a formatting object with request to show non-good qualities
   Dim fmt2 As DataBindFormat = New DataBindFormat
   fmt2.showNonGoodQuality = True
   OpcBind.Subscribe("Static.Simple Types.Short", Me.Listview1.Items, 6, fmt2)

   ' create a formatting object for special DateTime formatting
   Dim fmt3 As DataBindFormat = New DataBindFormat("dddd HH:mm:ss.fff")
   OpcBind.Subscribe("Static.Simple Types.DateTime", Me.Listview1.Items, 8, fmt3)
C#Copy Code
// define a formatting object with format xxxx.xxxxx and formula (x + (-2.0)) * 2.0 
   DataBindFormat fmt1 = new OpcDataBindFormat( "F5" );
   fmt1.add = -2.0 ;
   fmt1.multiply = 2.0 ;
   // display the double item value transformed and fix point formated
   staticDouble = OpcBind.Submit( "Static.Simple Types.Double", this.textBox2, fmt1);

   // create a formatting object with request to show non-good qualities
   DataBindFormat fmt2 = new OpcDataBindFormat();
   fmt2.showNonGoodQuality = true ;
   OpcBind.Submit( "Static.Simple Types.Short", this.Listview1.Items, 6,fmt2 );
 
   // create a formatting object for special DateTime formatting
   DataBindFormat fmt3 = new OpcDataBindFormat( "dddd HH:mm:ss.fff" );
   OpcBind.Submit( "Static.Simple Types.DateTime", this.Listview1.Items, 5, fmt3 );

Inheritance Hierarchy

System.Object
   xmldanet.DataBindFormat

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

© 2002-2012 Advosol Inc. All Rights Reserved.