Menu
Your Cart

Delux

Delux
Buy Online
£90.00
Ex Tax: £75.00
  • Stock: In Stock
  • Model: Delux
  • Weight: 0.00kg
  • SKU: DELUX
  • MPN: QBS Publishing

Available Options



Program that translates Visual Basic forms and code into the nearest equivalent in Delphi. Forms and controls, their properties, events and methods are mapped into Delphi equivalents wherever possible.
Delux is a program that translates Visual Basic forms and code into the nearest equivalent in Delphi. Forms and controls, their properties, events and methods are mapped into Delphi equivalents wherever possible, under the control of a database which may be edited or extended to meet new situations. VB form files (.FRM), class files (.CLS) and modules (.BAS) are converted to Delphi module (.PAS) and Delphi form definition (.DFM) files. It is available in the following Editions:
  • Delux: for translating Visual Basic forms and code into the nearest equivalent in Delphi
    • Delux Standard Edition: translates VB to Delphi or Kylix and is a fully functional translation tool
    • Delux Professional Edition: includes all of the functionality of the Standard Edition with the addition of a database translation and mapping extension.
  • Delux #: translates Visual Basic source code to C# for .NET
    • Delux # Standard Edition: translates VB code into C# for .NET
    • Delux # Professional Edition: includes all of the functionality of the Standard Edition with the addition of an OLEDB database translation and mapping extension.
  • DeluxVBNET: translates Visual Basic source code to VB.NET. All code, forms and controls can be translated. Available in a Professional Edition only

Delux - Features

Delux Standard Edition
Delux Professional Edition
Delux # Standard Edition
Delux # Professional Edition

Delux Standard Edition

Features include:
  • VB program control structures are converted to functionally identical code in Delphi
  • Control arrays translated completely including all event procedures
  • Variable typeing and scoping is reproduced
  • VB on error goto structure is replaced with try...except...end; clauses
  • User defined types are converted to Delphi Record types
  • Standard functions are replaced by their Delphi equivalents if they exist
  • Argument lists in standard functions are amended if required
  • External function declarations are converted
  • File handling code using VBs open, print, input etc is converted Delphi equivalents
  • Compiler conditional directives (#if ... etc) are translated to {$ifdef
  • ... etc}
  • VB projects are translated to Delphi projects.


Delux Professional Edition

Features include:
  • Visual Basic to Delphi name mappings may be changed or extended as required
  • Visual Basic program control structures are converted to functionally identical code in Delphi
  • Variable typing and scoping is reproduced
  • The Visual Basic on error goto structure is replaced with try...except...end; clauses
  • User defined types are converted to Delphi Record types
  • Control arrays translated completely including all event procedures
  • Standard functions are replaced by their Delphi equivalents if they exist
  • Argument lists in standard functions are amended if required
  • External function declarations are converted
  • File handling code using VBs open, print, input etc is converted Delphi equivalents
  • The VB data control is mapped to three Delphi controls: TTable, TDBNavigator and TDatasource to provide the same functionality
  • Bound controls are mapped to their Delphi DB equivalents
  • Obsolete DAO code is upgraded to ADO code and controls
  • Compiler conditional directives (#if ... etc ) are translated to {%ifdef ... etc}
  • VB projects are translated to Delphi projects
  • VB to Delphi name mappings may be changed or extended as required.


Name Mapping

Name mapping is an important part of the translation process for re-naming control classes, types and standard functions etc. Delux attempts to find the VB term in its dictionary anywhere that a different word is used in Delphi and replaces it with the mapped word. Delux maintains a dictionary, referred to as the class map to assist in the name translation. The mapping process is on two levels and allows different property maps to be used for different classes. The same mappings are used for translating forms and code although the interpretation of the dictionary entries differs between the processes. Delux attempts the class-specific mapping during translation; the default mapping is used if there is no map in the class entry. The default mappings are collected in the dummy class 0Default.

Program Control

... Do/While/For loops

While k < 5
Univ = Univ + 1
k = k + 1
GArray((k - 1), Univ) = 0
Wend


while k<5 do begin
Univ := Univ+1;
k := k+1;
GArray[( k-1 ) , Univ ] := 0;
end;


Do
k = k + GArray(k + 1, Univ)
Loop Until True


repeat
k := k+GArray[ k+1 , Univ ];
until True ;


Do
k = k + 1
Loop While k = 3


repeat
k := k+1;
until not (k = 3 );


Do While k < 3
If k = 5 Then Exit Do
k = k + 1
Loop


while k<3 do begin
if (k = 5 ) then
break;
k := k+1;
end;


Do Until k < 3
If k = 5 Then Exit Do
k = k + 1
Loop


while not (k<3 ) do begin
if (k = 5 ) then
break;
k := k+1;
end;


If bname = "" Then Exit Sub
If bname = "b" Then
Univ = GArray(1, 12)
ElseIf bname = "a" Then
Univ = -1
Else
Univ = 0
End If


if (bname = ) then
exit;
if (bname = b ) then begin
Univ := GArray[ 1 , 12 ];
end
else if (bname = a ) then begin
Univ :=-1;
end
else begin
Univ := 0;
end;


Select Case k
Case 21
….
Case 0
….
Case Else
….
End Select


case k of
21 :
begin
….;
end;
0 :
begin
….;
end;
Else :
begin
….;
end;
end;


For i = 0 To 100 for loop
j = k * k
GArray(k, 0) = 12.4
continuation line
b =
"this was continued …"
Next

-
for i := 0 to 100 do begin
j := k * k;
GArray[ k , 0 ] := 12.4;
file:// continuation line
b := this was continued …;
end;



Simple types

The default mapping is shown below and can be changed.

Visual BasicDelphi
integerlongint
longlongint
datetdate
doubledouble
stringstring
singledouble
booleanboolean
bytebyte
Currencydouble
objectTObject
variantvariant


Scope

VB has three levels of scope: procedure, module and project. In VB a form module cannot contain globally scoped variables or procedures and so all globals are placed in code modules (.BAS). In Delphi any module can contain global and module variables. Delux makes all global variables into module variables that are visible in other modules provided they have the first module in the uses clause. Module level variables and procedures declared in FRM files are not available in other modules and are so declared in the Delphi translation. They appear below the implementation statement and cannot be seen in other modules.

Error Handling

The on error goto code is substituted with try…except…end; as illustrated below:




….code….
….code….
….code….
Exit Sub
BadNumber :
….code…
Resume Next
End Sub


try
….code….
….code….
….code….
Exit;
except
….code….
end;


Please note that the Resume… has been ignored.

User Types

VB Record types

Private Type NameRecord
ARname As String
ARnumber As Integer
End Type

are converted to Delphi records:

TNameRecord = Record
ARname : String;
ARnumber : Integer;
End;

Delux # Standard Edition



Delux # Standard Edition translates Visual Basic source code to C# for .NET. Almost all VB forms and code are translated into C# including control arrays, tab page controls, data controls, ADO and DAO data classes and code. Delux # supports a configurable, hierarchical name dictionary that may be extended or altered to accommodate VB to C# name mappings. Macros translate statements and functions providing flexibility and the Visual Basic code can be viewed side-by-side with the C# code in the source viewer.

Features include:
  • All free code becomes part of objects that are instantiated when necessary
  • Instances of local classes are created where necessary
  • Multi-form applications are handled and local instances of referenced forms are made
  • Event handler delegate classes and argument classes created for objects with events
  • Data controls are mapped to a special class with identical functionality based on OLEDB.


Delux # Professional Edition



Features include:
  • All free code becomes part of objects that are instantiated when necessary
  • Instances of local classes are created where necessary
  • Multi-form applications are handled and local instances of referenced forms are made
  • Event handler delegate classes and argument classes created for objects with events
  • Data controls are mapped to a special class with identical functionality based on OLEDB.

Delux - System Requirements

System Requirements

Delux is a free standing Win32 application. It runs on all versions of Windows from Win98 to Windows 7. Memory requirements are modest, but depend on the size of the unit being translated.

Nominal HW requirements:

  • Windows OS
  • 25 Mb RAM
  • 50Mb HD space

Write a review

We use cookies and other similar technologies to improve your browsing experience and the functionality of our site. Privacy Policy.