Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with
Message
De
27/09/2005 07:31:12
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
 
 
À
27/09/2005 07:23:27
Daryl Dunkley
Pegasus Software Limited
Kettering, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01053363
Message ID:
01053364
Vues:
7
Hi Daryl,

>hi,
>
>i'm not sure if i have found a bug in VFP9. i'm trying to run the below code in VFP9 but i get Error #1593, in VFP6 the code works and a database is created.
>
>------------------------------------------------------------------
>LOCAL loCrtDB
>BEGIN TRANSACTION
>loCrtDB = CREATEOBJECT('clscreatedatabase')
>loCrtDB.createdatabase()
>ROLLBACK
>RETURN
>
>DEFINE CLASS clssession as Session
> datasession=2
>ENDDEFINE
>
>DEFINE CLASS clscreatedatabase as clssession
> PROCEDURE createdatabase()
> CREATE DATABASE c:\tempdb
> ENDPROC
>ENDDEFINE
>-----------------------------------------------------------------
>
>does anybody know why this doesn't work in VFP9?
>
>thanks
>
>daryl

Well... Help says that is illegal to use Create Database command inside of one transaction. This in VFP 9 help and VFP 8 help. Check VFP 6 help.
Bye!
Erick
Força Sempre!
Strength Always!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform