Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running VFP proc or view from VB
Message
From
04/09/2003 11:44:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Running VFP proc or view from VB
Miscellaneous
Thread ID:
00826067
Message ID:
00826067
Views:
74
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
Next
Reply
Map
View

Click here to load this message in the networking platform