Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with
Message
 
 
To
27/09/2005 08:17:45
Daryl Dunkley
Pegasus Software Limited
Kettering, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01053363
Message ID:
01053383
Views:
9
Hi Daryl,

It looks like a bug to me. The TXNLEVEL() in the createdatabase method returns 0 which means that there's no transaction in effect.


>i have fixed the sample code so now it works fine in VFP6 without causing a c05 and it still fails in VFP9 with the error 1593
>
>LOCAL loCrtDB
>BEGIN TRANSACTION
>
>loCrtDB = CREATEOBJECT("clscreatedatabase")
>loCrtDB.createdatabase()
>loCrtDB = .null.
>
>
>END TRANSACTION
>RETURN
>
>DEFINE CLASS clssession as Session
>	datasession=2
>ENDDEFINE
>
>DEFINE CLASS clscreatedatabase as clssession
>	PROCEDURE createdatabase()
>		CREATE DATABASE c:\tempdb
>	ENDPROC
>	
>	PROCEDURE destroy()
>		CLOSE DATABASES
>	ENDPROC
>ENDDEFINE
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform