Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I network VFP over the Web?
Message
De
16/01/2002 13:38:30
Dave Nantais
Light speed database solutions
Ontario, Canada
 
 
À
13/01/2002 11:27:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00604039
Message ID:
00605552
Vues:
22
>Then, you'll easily be able to change your data access class to use web data instead of local data.
>
>
oData = CREATEOBJECT('customerdata')
>oData.OpenCustomerTable()
>
>oForm = CREATEOBJECT('form')
>oForm.AddObject('oGrid', 'grid')
>oForm.oGrid.RecordSource = 'customer'
>oForm.oGrid.Visible = .T.
>oForm.Show(1)
>
>DEFINE CLASS customerdata AS Custom
>	PROCEDURE OpenCustomerTable
>	LOCAL oDataXML, lcXML
>	oDataXML = CREATEOBJECT('customerdataxml')
>	lcXML = oDataXML.OpenCustomerTable()
>	XMLTOCURSOR(lcXML, 'customer')
>	ENDPROC
>ENDDEFINE
>
>
>* Open up the customer table and return it in XML format
>DEFINE CLASS customerdataXML AS Session OLEPUBLIC
>	PROCEDURE OpenCustomerTable
>	LOCAL lcXML
>	USE HOME(2) + 'Tastrade\Data\customer.dbf'
>	CURSORTOXML('customer', 'lcXML')
>	RETURN lcXML
>	ENDPROC
>ENDDEFINE
>


Forgive this really dumb question ... but

how does the above coding change allow one to access web data instead of local data.

Ultimately you open the customer table with the command

USE HOME(2) + 'Tastrade\Data\Customer.dbf'

isnt that local?

could you clarify what
"Session OLEPUBLIC" means... ?

are building a .dll that sits on a machine at the different IP address and then 'SERVES' the data via XML ?

If indeed accessing web data between two machines is this simple...
I'm buying VFP 7 tomorrow.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform