'
' Author:
' Roopa Wilson (rowilson@novell.com)
-
' Copyright (C) 2004 Novell, Inc (http://www.novell.com)
'
' Permission is hereby granted, free of charge, to any person obtaining
' OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
' WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
'
-
-Imports Microsoft.VisualBasic \r
-Imports System\r
-Public Class TestClass\r
- Private Declare Function SQLCancel Lib "ODBC32.dll" _\r
- (ByVal hstmt As Integer) As Long\r
- Public Function Test() As String\r
- 'Begin Code\r
- On Error Resume Next\r
- Dim myhandle As Integer\r
- ' Call with invalid argument.\r
- Dim d as Integer = SQLCancel(myhandle)\r
- Return Err.LastDllError\r
- 'End Code\r
- End Function\r
-End Class\r
+Imports Microsoft.VisualBasic
+Imports System
+Public Class TestClass
+ Private Declare Function SQLCancel Lib "ODBC32.dll" _
+ (ByVal hstmt As Integer) As Long
+ Public Function Test() As String
+ 'Begin Code
+ On Error Resume Next
+ Dim myhandle As Integer
+ ' Call with invalid argument.
+ Dim d as Integer = SQLCancel(myhandle)
+ Return Err.LastDllError
+ 'End Code
+ End Function
+End Class