PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Managing objects and HFSQL files in Visual Basic
  • To migrate a WINDEV 5.5 application that manages the objects in Visual Basic
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
I was using Visual Basic with WINDEV 5.5. How to proceed in WINDEV 21?
Overview
You have the ability to use external languages with WINDEV. See the external languages in WINDEV for more details.
This paragraph presents the operations that must be performed to migrate a WINDEV 5.5 application that is using Visual Basic to WINDEV 23.
Note: The DDE calls (via CallDDE) in 16-bit mode are no longer available in this version of the external interface.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Managing objects and HFSQL files in Visual Basic

To migrate a WINDEV 5.5 application that manages the objects in Visual Basic

  1. Migrate your project from WINDEV 5.5 to WINDEV 7.5 and open it with WINDEV 23.
  2. Generate the skeleton of your application ("Analysis .. Advanced generation" in the data model editor).Generate the skeleton of your application: in the data model editor, on the "Analysis" pane, in the "'Analysis" group, expand "Generation" and select "Advanced generation".Caution: Don't overwrite the skeleton used by your application
  3. Re-create the library of your WINDEV application ("Workshop .. Library .. Create a library").Re-create the library of your WINDEV application: expand the generation icon and select "Other generations .. Generate the library (.wdl)".
  4. Delete the WinDevxx.Bas and WDHFxx.Bas files from the directory of your source codes (to avoid any confusion).
  5. In your Visual Basic project, delete the reference of dependency to the WDHF.bas and WINDEV.bas files.
  6. Copy the following files into the directory of your application.
    • WDHF.bas (found in the "ExternalLanguages\Basic" sub-directory of WINDEV).
    • WINDEV.Bas (found in the "ExternalLanguages\Basic" sub-directory of WINDEV).
    • <AnalysisName>.Bas generated by WINDEV (found in the directory of the analysis of the WINDEV project).
    • <AnalysisName>.gbl generated by WINDEV (found in the directory of the analysis of the WINDEV project).
  7. Add these 4 files to the Visual Basic project.
  8. Delete the calls to CALLDDE from your Visual Basic application. This function could only be used in the applications in 16-bit mode.
  9. The management of menus can be performed by one of the following methods:
    • Retrieving the shortcuts of menus with WDKEY = "*M*":
      While WDKey <> "ESC"
      ' perform the input of the menu
      Call callwd("SCREEN,input")
      ' the status report WDKey is set to *M* when a menu choice
      ' was selected
      If (WDKey = "*M*") Then
      '---------------------------------------
      ' Test of the selected option.
      ' WDString contains the sequence of shortcut letters
      ' that lead to the selected menu choice
      '---------------------------------------
      if( WDString="FQ" ) then WDKey = "ESC" ' Exit>
      If WDString = "RN" Then Call SearchCity  ' Search by City
      If WDString = "RD" Then Call SearchState  ' Search by State
      If WDString = "DD" Then Call LstState  ' Display list.
      If WDString = "DI" Then Call LstPrint ' Print.
      If WDString = "DC" Then Call LstConfig ' Configure printer
      End If
      Wend
    • Retrieving the shortcuts of menus by managing the shortcut in the option directly:
      1. In the code of each menu option to process, assign the shortcut to the WDKey keyword. For example, for File..Open:
        WDKey="FO";
      2. Modify the Visual Basic code as follows:
        ' the program loops until the File Exit option
        ' is selected
        While WDKey <> "ESC"
        ' perform the input of the menu
        Call callwd("SCREEN,input")
        '---------------------------------------
        ' Test of the selected option.
        '---------------------------------------
        If WDKey = "FE" then WDKey = "ESC" ' Exit
        If WDKey = "RN" Then Call FindCity ' Find City
        If WDKey = "RD" Then Call FindState ' Find State
        If WDKey = "DD" Then Call ListState ' Display list.
        If WDKey = "DI" Then Call LstPrint ' Print.
        If WDKey = "DC" Then Call LstConfig ' Configure printer
        Wend
  10. Recompile your Visual Basic project.
    Caution: the .Bas file generated by WINDEV contains a "Main" procedure. Keep your own "Main" procedure instead.
  11. Copy the necessary WINDEV DLLs into the directory of the executable of your application. Caution: wdxxxle.dll is mandatory.
Note: To find out the list of necessary DLLs, create the executable of your application in WINDEV.
Minimum required version
  • Version 10
Comments
Click [Add] to post a comment