Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

help with sqlite3

$
0
0

Hello all. I am trying to translate my experience with SQLite in VS (VB.net) to SharpDevelop so I can use the Forms Designer as I learn Python.

When I use ipy.exe I can import sqlite3 and type commands and generate a test database file.

 

But when I try to do this in code inside my Form I am failing. The screen "blinks" and there are no errors. I've tried wrapping code in a Try Except block and using a MessageBox.Show to display the results. I haven't figured out how to step through the code or "run to a certain line" like I can in VS but even surrouding code with message boxes to show me where I am in the code does not help me. When I start typing sqlite3 I do not get any hints at code completion which leads me to suspect maybe the module is not being installed. I did import Ironpython.SQlite.

I have been able to add a reference to a third-party .Net grid control and it appears on the Form! In VS I could use a SQlitedataadapter to create a dataset and bind that to the grid. I'm hoping to be able to do the same with Python as I learn the language.

I've searched and read a LOT but simply cannot get this to work. Can anyone give me any tips or list some things that are common errors that I might be doing?

Thanks very much in advance.

Steve


Viewing all articles
Browse latest Browse all 1764

Trending Articles