[Mono-list] mBas now understands rootnamespace argument

Daniel Morgan danmorg@sc.rr.com
Mon, 3 Feb 2003 15:28:34 -0500


Hi Rafael,

Is it possible to do database stuff with MonoBasic yet?

For example, here is a simple program that works on .NET below:

Imports System
Imports System.Data
Imports System.Data.SqlClient

Module Module1

    Sub Main()
        Dim con As SqlConnection
        con = New SqlConnection("Server=localhost;database=pubs;user
id=someuser;password=somepass")
        con.Open()
        Dim cmd As SqlCommand
        cmd = con.CreateCommand()
        cmd.CommandText = "select fname from employee"
        Dim reader As SqlDataReader
        reader = cmd.ExecuteReader()
        If (reader.Read()) Then
            Dim firstName As String
            firstName = reader.GetString(0)
            Console.WriteLine(firstName)
        Else
            Console.WriteLine("No data returned.")
        End If
    End Sub

End Module

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of A Rafael D
Teixeira
Sent: Monday, February 03, 2003 2:41 PM
To: mono-list@ximian.com
Subject: [Mono-list] mBas now understands rootnamespace argument


Implemented rootnamespace line command option.
It defaults to the output file name.

Also now, like vbc, if no source file name is provided just mBas will just
show the help text, instead of outputting an error message.


I could not test the namespaces created, as type-reflector in cvs can't run
in console mode...

'make -f makefile.gnu console' builds and gives no warning but running
type-reflector with mono gives a 'Error: Invalid displayer:' message. I
checked the xml config file for type-reflector and it seems to have it
right...


Happy hackings,

Rafael Teixeira
Brazilian Polymath
Mono, MonoQLE Hacker



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list