Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Database Not Allowed in Class Definition?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Create Database Not Allowed in Class Definition?
Divers
Thread ID:
00391904
Message ID:
00391904
Vues:
31
I am creating an object, here is an excerpt of the code (contained in main.prg):
#INCLUDE WCONNECT.H
define class StartupTest as custom 
Function Init
	oShell = CREATEOBJ('Wscript.Shell')
	create database (cDBName)
	set database to eval(cDBName)
endfunc
enddefine
When I try to make it go from the following code:
set procedure to main.prg
oHereObj = createobject('StartupTest')
oHereObj.Init()
I get an error "Statement is not valid in a class definition" at the create database line. How do I make a DBC?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform