2 ' Copyright (c) 2002-2003 Mainsoft Corporation.
4 ' Permission is hereby granted, free of charge, to any person obtaining a
5 ' copy of this software and associated documentation files (the "Software"),
6 ' to deal in the Software without restriction, including without limitation
7 ' the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 ' and/or sell copies of the Software, and to permit persons to whom the
9 ' Software is furnished to do so, subject to the following conditions:
11 ' The above copyright notice and this permission notice shall be included in
12 ' all copies or substantial portions of the Software.
14 ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 ' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 ' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 ' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 ' FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 ' DEALINGS IN THE SOFTWARE.
24 Imports Microsoft
.VisualBasic
25 Public Class TestClass
26 Public Function Test() As String
29 Dim oDT3
As Integer = 1
30 Dim oDT4
As Long = 1000
31 Dim oDT5
As Single = 1.1
32 Dim oDT6
As Double = 2.2
33 Dim oDT7
As Decimal = 1000
34 Dim oDT8
As String = "abc"
35 Dim oDT9
As Object = Nothing
36 Dim oDT10
As Boolean = True
37 Dim oDT11
As Char
= "c"c
38 Dim oDT12
As Date = #
5/31/1993#
40 If IsArray(oDT1
) Then Return "failed"
41 If IsArray(oDT2
) Then Return "failed"
42 If IsArray(oDT3
) Then Return "failed"
43 If IsArray(oDT4
) Then Return "failed"
44 If IsArray(oDT5
) Then Return "failed"
45 If IsArray(oDT6
) Then Return "failed"
46 If IsArray(oDT7
) Then Return "failed"
47 If IsArray(oDT8
) Then Return "failed"
48 If IsArray(oDT9
) Then Return "failed"
49 If IsArray(oDT10
) Then Return "failed"
50 If IsArray(oDT11
) Then Return "failed"
51 If IsArray(oDT12
) Then Return "failed"