Could anyone tell me how I should be handling this problem?
Many thanks - Debbie
--
Craig Berntson
MCSD, Visual FoxPro MVP
www.craigberntson.com
Salt Lake City Fox User Group
www.slcfox.org
www.foxcentral.net
"Debbie" <brit...@hotmail.com> wrote in message
news:vvidnePl3qe...@adelphia.com...
I have seen several articles on the internet where the web designer is using
code to create connection strings etc to access databases and tables, but I
am not the one designing the ASP web pages and I wanted the web designer to
call a method in my COM that would pull the necessary data out of various
tables and pass the results back to the ASP page. I guess my main problem
is I don't have any understanding of how the whole process works - I was
hoping that the web designer could just create a instance of my COM, set its
DataPath property and then call a method to gather the data like below:
oCOM = Server.CreateObject("MyCOM.MyCOM")
oCOM.DataPath = "c:\trackingmodule\data\"
oTrackingData = oCOM.GetData()
When you say "You can return the data as an ADO record set or XML", do you
mean the web designer would include the relevant code in the ASP page, or do
you mean I would actually write FoxPro code in my COM to do that? If its
the latter, (1) how do I do that, and (2) is the data returned as a cursor
or a table, and (3) who/how is the cursor or table closed.
Sorry to sound so stupid!
Debbie
"Craig Berntson" <iamc...@iamcraigberntson.com> wrote in message
news:%237X4pGL...@TK2MSFTNGP12.phx.gbl...
I think this might help you out.
If you are still having problems I can send you more pages with "HOW TO"
articles.
Thanks and I hope it helps.
John.
"Debbie" <brit...@hotmail.com> wrote in message
news:LcqdnXJ8Dac...@adelphia.com...
Might this help:
loConn = createobject([ADODB.Connection])
if vartype(loConn) = [O]
loConn.ConnectionString = [Driver=SQL
Server;Server=MySQLServer;Database=MyDatabase;UID=User;PWD=Password]
loConn.Open()
endif
--
The Hacker's Guide to GoldMine 6.7 - http://www.dj-hunt.com/hg_toc3.htm
One-on-One GoldMine Technical Support ( Fee Based Service ) -
http://www.dj-hunt.com/gm_tech_support.htm
DJ Hunt
Phone: (978)342-3333
Email: DJ....@DJ-Hunt.com
http://fox.wikis.com/wc.dll?Wiki~ASPandVFP~VFP
My mistake.. had the wrong site in clipboard...lol
John.
"Juan Alonso" <jac...@hotmail.com> wrote in message
news:eyo8HXM...@TK2MSFTNGP15.phx.gbl...
> Hello Debbie.
>
> I think this might help you out.
>
> If you are still having problems I can send you more pages with "HOW TO"
> articles.
>
> Thanks and I hope it helps.
> http://support.microsoft.com/kb/q152972/
>
> John.
>
>
> "Debbie" <brit...@hotmail.com> wrote in message
> news:LcqdnXJ8Dac...@adelphia.com...
I think this might help you out.
If you are still having problems I can send you more pages with "HOW TO"
articles.
Thanks and I hope it helps.
http://support.microsoft.com/kb/q152972/
John.
"Debbie" <brit...@hotmail.com> wrote in message
news:LcqdnXJ8Dac...@adelphia.com...
%>
This works great and you can pass objects back and forth between the
environments...
"Debbie" <brit...@hotmail.com> wrote in message
news:vvidnePl3qe...@adelphia.com...