Class wwDotnetBridge (Support Functions)

Class Members

MemberDescription

ComArrayToCollection

Creates a FoxPro collection from a ComArray for easier access in FoxPro code, when the collections are read only.

o.ComArrayToCollection(loComArray)

CreateInstanceFromFile

Allows creation of an type directly from a file without having to first call LoadAssembly().

o.CreateInstanceFromFile(lcAssemblyFilename, lcType,lvParm1..lvParm3)

CursorToDataSet

Creates a .NET DataSet from a single or multiple open FoxPro cursors.

o.CursorToDataSet(lcAliasList)

DataSetToCursors

Converts a .NET DataSet to cursors that match the tables in the DataSet's Tables collection.

o.DataSetToCursors(loDs)

DataSetToXmlAdapter

Converts a .NET DataSet object instance to a Visual FoxPro XmlAdapter object that can be turned easily into cursors.

o.DataSetToXmlAdapter(loDs)

FromJson

Deserializes JSON into a .NET object or simple value.

o.FromJson(lcJson,lvDotnetType)

FromXml

Parses an XML string into a .NET object.

o.FromXml(lcJson,lvDotnetType)

GetLoadedAssemblies

Returns a collection of all of the loaded assemblies in the current process.

o.GetLoadedAssemblies()

GetType

Returns a .NET Type object from the value passed to this function.

o.GetType(lvValue)

GetTypeFromName

Returns a .NET type reference for a type by its fully qualified .NET type name (ie. namespace.classname).

o.GetTypeFromName(lcTypeName)

Load

Internal function responsible for bootstrapping the .NET Runtime and grabbing a wwdotnetBridge instance.

o.Load()

RunThread

Allows firing off a PRG file on a new thread. Compiles and executes this PRG and can fire events to an loEvents object passed in as a parameter. You can implement callback functionality on the loEvents object.

o.RunThread(lcPrgFilename,loEvents)

ToXml

Serializes a .NET object to an XML string.

o.ToXml(loDotnetObject)

XmlAdapterGetCursor

Retrieves an indivdual cursor from a loaded XmlAdapter object.

o.XmlAdapterGetCursor(loAdapter,lvIndex)

XmlAdapterToCursors

Helper method that generates one cursor for each of the XmlAdapter's Tables. Cursors are created with the names defined in the XML document's item nodes (ie. the DataSet Table names).

o.XmlAdapterToCursors(loAdapter)

XmlStringToDataSet

Creates a .NET DataSet from an XML String that is exported from XmlAdapter or CursorToXml.

o.XmlStringToDataSet(lcXml)


© West Wind Technologies, 2024 • Updated: 09/23/24
Comment or report problem with topic