Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does Foxtalk need a booster?
Message
De
20/11/2003 11:49:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00847219
Message ID:
00851929
Vues:
41
>You can use whatever you want.... but if you say you are using XML - then that is not native data. Native Data in Fox is direct access to a VFP DBF. Client Data? Well that gets into a broader def - but you did not say client data - you said native data. Big difference.
DEFINE CLASS MyNativeData AS CUSTOM OLEPUBLIC

   FUNCTION GetRealFacts As String
      USE tableFullOfFacts
      LOCAL lcXml
      CURSORTOXML("tableFullOfFacts", "lcXml")
      USE IN tableFullOfFacts
   RETURN lcXml

ENDDEFINE

DEFINE CLASS MyNativeProgram AS CUSTOM

   FUNCTION Init
      LOCAL oData
      oData = this.GetMyData()
      XMLTOCURSOR(oData.GetRealFacts(), "StillNativeData")
      SELECT tableFullOfFacts
      SCAN 
         ?TheTruth
      ENDSCAN
      USE IN tableFullOfFacts
   RETURN


   FUNCTION GetMyData
     * Code to instantiate a class, COM object, or Web Service implementation of MyNativeData
   RETURN oObject

ENDDEFINE
Here we have a 100% native VFP program, dealing with 100% native VFP data. Do you disagree?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform