Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use dbf in asp
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01079142
Message ID:
01079294
Vues:
24
In addition to Cetin's advice - you might look at this (and others) in download #16575 for info about ADO. ADO is a middle-object that can read or update a SQL table (or VFP table) through, as Cetin advised, OLEDB.

I have VFP apps that communicate with ASP using XMLHTTP - here an example of a SEND:
 lcURL=[http://www.MyDomain.com/relay1.asp]
   oform.msg.caption=[connecting-]+lcURL
   oform.pb.value=5
   oHTTP=NewOBJECT("MSXML2.XMLHTTP")
   oHTTP.open([POST],lcURL,.f.)
   oHttp.setRequestHeader("Content-Type", "text/xml")
   oform.pb.value=8
   oform.msg.caption=[sending-]+lcURL
   oHttp.send(lcSendBody)
   oform.pb.value=10
   oform.msg.caption=[completed-]+lcURL
   oHTTP.abort
   oform.pb.value=0
   oform.msg.caption=[... done]
   RELEASE oHTTP
You may also look at using XML as a carrier - here is what the code looks like on my ASP page
dim oXML
set oXML = Server.CreateObject("Msxml2.DOMDocument")
oXML.async = false
oXML.resolveExternals = false
oXML.load(Request)
cBody="/r"
dim oItems
set oItems=oXML.selectSingleNode("row") 
cName=oItems.selectSingleNode("name").text
cMailTo=oItems.selectSingleNode("mailto").text
cBlindTo="<" & oItems.selectSingleNode("blindto").text & ">"
cSubject=oItems.selectSingleNode("subject").text
cBody = cBody & oItems.selectSingleNode("status").text
cNameMail=cName &" <" & cMailTo & ">"
There are sample scripts on the web. The VFP autocomplete feature was very helpful. Once the object is created, pressing the '.' (dot) after the object's reference will open a list of methods and properties.

Here is an "Arabic" ASP email product with fox examples:
http://www.allworldsoft.com/software/3-534-m-arabic-mail-component.htm

>thanks Cetin your reply, i try with aspmaker(A software which can create asp database easly)
>i have error
>
>Error Type:
>Microsoft VBScript compilation (0x800A0400)
>Expected statement
>/5655/resultlist.asp, line 26
>= Null: o = Null
>
>
>Browser Type:
>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
>
>Page:
>GET /5655/resultlist.asp
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform