dOPC Client Toolkit Help file
dOPCIntf.dOPCADatatype Enumeration
C++
public: enum dOPCADatatype {
  vtEMPTY,
  vtNULL,
  vtI2,
  vtI4,
  vtR4,
  vtR8,
  vtCY,
  vtDATE,
  vtBSTR,
  vtDISPATCH,
  vtERROR,
  vtBOOL,
  vtVARIANT,
  vtUNKNOWN,
  vtDECIMAL,
  vtundef,
  vtI1,
  vtUI1,
  vtUI2,
  vtUI4,
  vtI8,
  vtUI8,
  vtINT,
  vtUINT,
  vtVOID,
  vtHRESULT,
  vtPTR,
  vtSAFEARRAY,
  vtCARRAY,
  vtUSERDEFINED,
  vtLPSTR,
  vtLPWSTR
};
C#
public enum dOPCADatatype {
  vtEMPTY,
  vtNULL,
  vtI2,
  vtI4,
  vtR4,
  vtR8,
  vtCY,
  vtDATE,
  vtBSTR,
  vtDISPATCH,
  vtERROR,
  vtBOOL,
  vtVARIANT,
  vtUNKNOWN,
  vtDECIMAL,
  vtundef,
  vtI1,
  vtUI1,
  vtUI2,
  vtUI4,
  vtI8,
  vtUI8,
  vtINT,
  vtUINT,
  vtVOID,
  vtHRESULT,
  vtPTR,
  vtSAFEARRAY,
  vtCARRAY,
  vtUSERDEFINED,
  vtLPSTR,
  vtLPWSTR
}
Visual Basic
Public Enum dOPCADatatype
  vtEMPTY
  vtNULL
  vtI2
  vtI4
  vtR4
  vtR8
  vtCY
  vtDATE
  vtBSTR
  vtDISPATCH
  vtERROR
  vtBOOL
  vtVARIANT
  vtUNKNOWN
  vtDECIMAL
  vtundef
  vtI1
  vtUI1
  vtUI2
  vtUI4
  vtI8
  vtUI8
  vtINT
  vtUINT
  vtVOID
  vtHRESULT
  vtPTR
  vtSAFEARRAY
  vtCARRAY
  vtUSERDEFINED
  vtLPSTR
  vtLPWSTR
End Enum

dOPCIntf

Members

vtEMPTY
V] [P] nothing 

nothing

vtNULL
V] SQL style Null 

SQL style Null

vtI2
V][T][P] 2 byte signed int 

2 byte signed int

vtI4
V][T][P] 4 byte signed int 

4 byte signed int

vtR4
V][T][P] 4 byte real 

4 byte real

vtR8
V][T][P] 8 byte real 

8 byte real

vtCY
V][T][P] currency 

currency

vtDATE
V][T][P] date 

date

vtBSTR
V][T][P] binary string 

binary string

vtDISPATCH
V][T] IDispatch FAR 

IDispatch FAR

vtERROR
V][T] SCODE 

SCODE

vtBOOL
V][T][P] True,-1, False,0 

True, -1, False, 0

vtVARIANT
V][T][P] VARIANT FAR 

VARIANT FAR

vtUNKNOWN
V][T] IUnknown FAR 

IUnknown FAR

vtDECIMAL
V][T] [S] 16 byte fixed point 

16 byte fixed point

vtundef
undefined
vtI1
T] signed char 

signed char

vtUI1
T] unsigned char 

unsigned char

vtUI2
T] unsigned short 

unsigned short

vtUI4
T] unsigned short 

unsigned short

vtI8
T][P] signed 64-bit int 

signed 64-bit int

vtUI8
T] unsigned 64-bit int 

unsigned 64-bit int

vtINT
T] signed machine int 

signed machine int

vtUINT
T] unsigned machine int 

unsigned machine int

vtVOID
T] C style void 

C style void

vtHRESULT

T

vtPTR
T] pointer type 

pointer type

vtSAFEARRAY
T] (use vtARRAY in VARIANT) 

(use vtARRAY in VARIANT)

vtCARRAY
T] C style array 

style array

vtUSERDEFINED
T] user defined type 

user defined type

vtLPSTR
T][P] null terminated string 

null terminated string

vtLPWSTR
string

T][P] wide null terminated string 

dOPCADatatype provides the possible data types of OPC server items.

What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.