Class wwDotnetBridge (Support Functions)
Class Members
Member | Description | |
---|---|---|
![]() |
CreateInstanceFromFile | Allows creation of an type directly from a file without having to first call `LoadAssembly()`. Generally this is not recommended except for special occasions, it's almost always better to use…
o.CreateInstanceFromFile(lcAssemblyFilename,
lcType,lvParm1..lvParm3)
|
![]() |
ComArrayToCollection | Creates a FoxPro collection from a ComArray for easier access in FoxPro code, when the collections are read only. Primarily meant for internal functions that return Collection results that don't…
o.ComArrayToCollection(loComArray)
|
![]() |
CursorToDataSet | Creates a .NET DataSet from a single or multiple open FoxPro cursors.
```foxpro
DO wwDotNetBridge
CREATE CURSOR TQuery ( Name c(50), Entered T)
INSERT INTO TQUery VALUES ("Rick",DATETIME())
INSERT…
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.
This method requires that you provide either .NET type object, or a fully qualified type name (namespace.classname or fully qualified GAC name).
o.FromXml(lcJson,lvDotnetType)
|
![]() |
GetLoadedAssemblies | Returns a collection of all of the loaded assemblies in the current process. The collection contains items with the following properties: * Name * Location * FullyQualifiedName
o.GetLoadedAssemblies()
|
![]() |
GetType | Returns a .NET Type object from the value passed to this function. This method is useful for any method calls that require type information as part of a method call which is not uncommon in .NET.…
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. Generally you won't call this method yourself as it's called when wwDotnetBridge is created…
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…
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, 2025 • Updated: 2025-03-12
Comment or report problem with topic