[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
        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("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
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

Happy hackings,

Rafael Teixeira
Brazilian Polymath
Mono, MonoQLE Hacker

The new MSN 8: smart spam protection and 2 months FREE*

Mono-list maillist  -  Mono-list@lists.ximian.com