Valentina works under ASP.NET

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jun 2 23:12:39 CDT 2003


on 6/2/03 22:32, Aric Whitaker at aric at pccrafter.com wrote:

Hi Aric,

> If you are working on an OLE DB driver, that would rock!  (Just one more
> thing to add to your all-so-long list!)

We do not develop it right now. But we definitely get it.
One of local developers is great expert on MS technologies and OLD DB in
particular.

> When I finish my particular project, I will make portions of my source
> code freely available to the Valentina community.
> 
> Coding trick:  If you are like me, (and from your emails I know others
> out there have experienced this...) if your code should fail
> prematurely, then the database is not closed, and remains in a "locked"
> state.  A simple way to always avoid this:  Write a
> routine/function/whatever to simply create a new database object, then
> immediately close it.  This routine will remove any locks on the
> database... here are mine in ASP.NET and Director's Lingo respectively:

By the way, Aric. I think with ASP it is more correct to use
Valentina Server and VCOM_Client.
If you have not see yet, VCOM_Client already exists.


> ------ASP.NET--------
> ' Sub Routine to unlock an already locked DB
> Sub BreakLock( strRegCode as String )
> Dim Valentina
> Valentina = Server.CreateObject("VCOM.Valentina.1")
> 
> Valentina.Init( 1, strRegCode )
> Valentina.ShutDown()
> Valentina = nothing
> End Sub
> 
> 
> -------Lingo--------
> on UnlockDB
> global MyDB
> 
> ValentinaInit( 4 * 1024 * 1024, "", "" )
> 
> set MyDB = new(xtra"VDataBase")
> openDatabase(MyDB, the moviePath & "MyDataBase.vdb")
> 
> CloseDatabase( MyDB )
> set MyDB = void
> 
> ValentinaShutDown
> 
> end UnlockDB
> 
> -------------------------
> 
> 
> Терпение и труд всё перетрут.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list