WinWrap® Basic is an embedded macro language component available for .NET and COM 32 bit and 64 bit Windows applications. The WinWrap® Basic OCX Component is compatible with Sax Basic and Visual Basic 6.0.
The WinWrap® Basic Scripting Engine provides both end-users and developers with a complete VBNET compatibility solution.
Applications including the WinWrap® Basic dll ship with a fully featured development environment including an editor and a debugger. The WinWrap® Basic software package is used in conjunction with Microsoft development tools including Visual Studio, Visual Studio.NET, Visual Studio Express, and the ActiveX scripting engines.
Basic has long been considered the best language for user scripting and user application extensions. Basic has a reputation as being the easiest language for non-developer users to understand and use.
If you are considering transitioning from a VB5 and 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
Utilize the .NET Host COM interop capability to provide complete compatibility for existing Sax Basic VB 6.0 legacy scripts. And, enjoy all the features of .NET in your Host Application.
Join the growing number of Sax Basic developers that are enjoying the new capabilities with WinWrap® Basic Scripting ActiveX Control and still have complete and compatible support for existing Sax Basic VB5 and VB 6 legacy scripts.
The WinWrap® Basic Scripting Object provides both end-users and developers with a complete Visual Basic 6 application automation and customization solution.
Whether you are migrating to .NET or are continuing to use VB6, the WinWrap® Basic Scripting Engine Version 10 will provide VB5/VB6 and Sax Basic script compatibility for your customers.
Copyright Polar Engineering, Inc.