Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running VFP proc or view from VB
Message
De
04/09/2003 11:44:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Running VFP proc or view from VB
Divers
Thread ID:
00826067
Message ID:
00826067
Vues:
73
I can do this in VFP...

nConnectionHandle = SQLCONNECT('sqlremote')
SQLEXEC(SQLEXEC(nConnectionHandle, 'select * from test', 'temptest')
and I can do this
? SQLEXEC(nConnectionHandle, 'use pubs')
? SQLEXEC(nConnectionHandle, 'sp_who')

and I can do this in VB...
'sActivityDate is my parameter that I would like to pass to FoxPro...
'You can use any date for the test...
sSQL = "select * from " & sView1 & " where trandate = {^" & sActivityDate
& "}"
Set RS1 = Cnn.Execute(sSQL)

The question is how does one run a VFP stored proc or send a parameter for a view from VB?
TIA
GAB
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform