The WinWrap® Basic Scripting Engine Version 10 with WWB-COM Language delivers fully compatible support for Sax Basic legacy scripts.
The WinWrap® Basic WWB-COM Scripting Language delivers:
Polar Engineering has designed WinWrap® Basic to minimize the effort and maximize the compatibility of enabling your existing VB6, MFC, or ATL (COM host) applications to run on the latest Windows operating systems.
In addition, developers migrating legacy code to the new .NET development environment can utilize WinWrap® Basic to maintain their Sax Basic investment and add new capabilities to their .NET host applications.
Join the growing number of Sax Basic developers that are enjoying the new capabilities with WinWrap® Basic Scripting Engine and still have complete and compatible support for existing Sax Basic legacy scripts.
Utilize the .NET Host COM interop capability to provide complete compatibility for existing Sax Basic legacy scripts. And, enjoy all the features of .NET in your Host Application.
If you are considering transitioning from a VB6 host application to a .NET host application, the following code demonstrates how the legacy Sax Basic code is fully supported in both hosts by the WinWrap® Scripting Language control. The host application creates the application object and then extends the WinWrap® Basic language using the BasicIdeCtl AddExtension and AddExtensionWithEvents methods.
Sub Main ' modify .NET/COM host application object AppObject.Value = "hi" End Sub ' value changed event for .NET/COM host application object Public Sub AppObject_ValueChanged() ' display .NET/COM application object changed value MsgBox AppObject.Value End Sub
AppObject class module:
Private value_ As String Public Event ValueChanged() Public Property Get Value() As String Value = value_ End Property Public Property Let Value(ByVal newValue As String) value_ = newValue RaiseEvent ValueChanged() End Property
AppObject class module:
<Microsoft.VisualBasic.ComClass(), _ System.Runtime.InteropServices.ComVisible(True)> _ Public Class AppObject Private value_ As String Public Event ValueChanged() Public Property Value() As String Get Value = value_ End Get Set(ByVal Value As String) value_ = Value Try RaiseEvent ValueChanged() Catch End Try End Set End Property End Class
In summary, whether you are migrating to .NET or are continuing to use VB6, the WinWrap® Basic Scripting Engine Version 10 will
provide Sax Basic script compatibility for your customers.
Copyright Polar Engineering, Inc.