Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does Foxtalk need a booster?
Message
From
20/11/2003 11:49:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00847219
Message ID:
00851929
Views:
46
>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform