158 references to VT
Microsoft.VisualBasic.Core (158)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (121)
867
Friend Shared Function VTType(ByVal VarName As Object) As
VT
869
Return
VT
.Variant
875
Friend Shared Function VTFromComType(ByVal typ As System.Type) As
VT
877
Return
VT
.Variant
883
Return CType(
VT
.Array Or
VT
.Variant,
VT
)
886
Dim Result As
VT
= VTFromComType(typ)
887
If (Result And
VT
.Array) <> 0 Then
889
Return CType(
VT
.Array Or
VT
.Variant,
VT
)
891
Return CType(Result Or
VT
.Array,
VT
)
898
Return
VT
.Empty
903
Return
VT
.String
905
Return
VT
.Integer
907
Return
VT
.Short
909
Return
VT
.Long
911
Return
VT
.Single
913
Return
VT
.Double
915
Return
VT
.Date
917
Return
VT
.Boolean
919
Return
VT
.Decimal
921
Return
VT
.Byte
923
Return
VT
.Char
925
Return
VT
.DBNull
929
Return
VT
.Error
932
Return
VT
.Error
936
Return
VT
.Structure
939
Return
VT
.Variant
982
Dim vtype As
VT
988
If (vtype And
VT
.Array) = 0 Then
1075
m_bw.Write(CShort(
VT
.String))
1135
m_bw.Write(
VT
.Date)
1154
m_bw.Write(
VT
.Short)
1172
m_bw.Write(
VT
.Integer)
1190
m_bw.Write(
VT
.Long)
1208
m_bw.Write(
VT
.Byte)
1226
m_bw.Write(
VT
.Char)
1244
m_bw.Write(
VT
.Single)
1262
m_bw.Write(
VT
.Double)
1273
m_bw.Write(
VT
.Empty)
1288
m_bw.Write(
VT
.Boolean)
1311
m_bw.Write(
VT
.Decimal)
1329
m_bw.Write(CShort(
VT
.Decimal)) ' Decimal contains the vtype as first 2 bytes
1349
m_bw.Write(
VT
.Currency)
1377
Friend Function ComTypeFromVT(ByVal vtype As
VT
) As System.Type
1379
Case
VT
.Variant
1381
Case
VT
.Empty
1383
Case
VT
.DBNull
1385
Case
VT
.Short
1387
Case
VT
.Integer
1389
Case
VT
.Long
1391
Case
VT
.Single
1393
Case
VT
.Double
1395
Case
VT
.Date
1397
Case
VT
.String
1399
Case
VT
.Error
1401
Case
VT
.Boolean
1403
Case
VT
.Decimal
1405
Case
VT
.Byte
1407
Case
VT
.Char
1682
Dim vtype As
VT
1724
If vtype =
VT
.String Then
1788
Case
VT
.DBNull,
VT
.Empty
1791
Case
VT
.Byte '1 byte
1796
Case
VT
.Short '2 bytes
1801
Case
VT
.Boolean '2 bytes
1812
Case
VT
.Integer '4 Bytes
1817
Case
VT
.Long '8 Bytes
1822
Case
VT
.Single '4 bytes
1827
Case
VT
.Error '4 bytes
1830
Case
VT
.Double '8 bytes
1835
Case
VT
.Date '8 bytes
1840
Case
VT
.Decimal '8 bytes
1845
Case
VT
.String
1904
Case
VT
.Char '2 bytes
1909
Case
VT
.Variant
1912
Case
VT
.Structure
1916
If (vtype And
VT
.Array) <> 0 Then
1923
vtype = vtype Xor
VT
.Array
1925
If vtype =
VT
.Variant Then
1929
If vtype >
VT
.Variant AndAlso (vtype <>
VT
.Byte AndAlso vtype <>
VT
.Decimal AndAlso vtype <>
VT
.Char AndAlso vtype <>
VT
.Long) Then
1941
Dim vtype As
VT
1984
Case
VT
.DBNull,
VT
.Empty
1986
Case
VT
.Byte '1 byte
1989
Case
VT
.Short '2 bytes
1992
Case
VT
.Boolean '2 bytes
1995
Case
VT
.Integer '4 Bytes
1998
Case
VT
.Long '8 Bytes
2001
Case
VT
.Single '4 bytes
2004
Case
VT
.Error '4 bytes
2006
Case
VT
.Double '8 bytes
2009
Case
VT
.Date '8 bytes
2012
Case
VT
.Decimal '8 bytes
2017
Case
VT
.String
2023
Case
VT
.Char
2026
Case
VT
.Variant
2034
Case
VT
.Structure
2043
If (vtype And
VT
.Array) <> 0 Then
2049
vtype = vtype Xor
VT
.Array
2051
If vtype =
VT
.Variant Then
2055
If vtype >
VT
.Variant AndAlso (vtype <>
VT
.Byte AndAlso vtype <>
VT
.Decimal AndAlso vtype <>
VT
.Char AndAlso vtype <>
VT
.Long) Then
2078
Private Function GetByteLength(ByVal vtype As
VT
) As Integer
2080
Case
VT
.Byte '1 byte
2082
Case
VT
.Short '2 bytes
2084
Case
VT
.Integer '4 Bytes
2086
Case
VT
.Long '8 Bytes
2088
Case
VT
.Single '4 bytes
2090
Case
VT
.Double '8 bytes
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (37)
197
Dim vtype As
VT
203
vtype = CType(m_br.ReadInt16(),
VT
)
210
vtype =
VT
.String
212
vtype =
VT
.Short
214
vtype =
VT
.Integer
216
vtype =
VT
.Long
218
vtype =
VT
.Byte
220
vtype =
VT
.Date
222
vtype =
VT
.Double
224
vtype =
VT
.Single
226
vtype =
VT
.Decimal
228
vtype =
VT
.Boolean
230
vtype =
VT
.Char
233
vtype =
VT
.Structure
235
vtype =
VT
.Variant 'To force an exception later
238
vtype =
VT
.Variant 'To force an exception later
242
If (vtype And
VT
.Array) <> 0 Then
244
Dim v As
VT
= vtype Xor
VT
.Array
248
If vtype =
VT
.String Then
250
ElseIf vtype =
VT
.Short Then
252
ElseIf vtype =
VT
.Integer Then
254
ElseIf vtype =
VT
.Long Then
256
ElseIf vtype =
VT
.Byte Then
258
ElseIf vtype =
VT
.Date Then
260
ElseIf vtype =
VT
.Double Then
262
ElseIf vtype =
VT
.Single Then
264
ElseIf vtype =
VT
.Currency Then
266
ElseIf vtype =
VT
.Decimal Then
268
ElseIf vtype =
VT
.Boolean Then
270
ElseIf vtype =
VT
.Char Then
272
ElseIf vtype =
VT
.Structure Then
277
ElseIf vtype =
VT
.DBNull AndAlso ContainedInVariant Then
279
ElseIf vtype =
VT
.DBNull Then
281
ElseIf vtype =
VT
.Empty Then
283
ElseIf vtype =
VT
.Currency Then
492
PutShort(RecordNumber,
VT
.DBNull, False)