AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Gestión de lenguajes externos / Visual Basic
  • Overview
  • Managing HFSQL objects and data files in Visual Basic
  • To migrate a WINDEV 5.5 application that manages the objects in Visual Basic
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
I was using Visual Basic with WINDEV 5.5. How to proceed in WINDEV 2024?
Overview
You have the ability to use external languages with WINDEV. For more details on the different ways to use elements developed in WINDEV with an external language, see external languages in WINDEV.
This paragraph presents the operations required to migrate a WINDEV 5.5 application that uses Visual Basic to WINDEV 2025.
Note: The DDE calls (vie CallDDE) in 16 bits are not longer available in this version of the external interface.
Managing HFSQL objects and data 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 2025.
  2. If necessary, create a "Library" project configuration. Integrate all the elements of your project into this configuration.
  3. Generate the skeleton of your application: in the analysis editor, under the "Análisis" pane, in the "Análisis" group, pull down "Generación" and select "Advanced generation".. Caution: Do no overwrite the skeleton used by your application.
  4. Re-create the library of your WINDEV application: generate the project configuration of type Library.
  5. Delete the WinDevxx.Bas and WDHFxx.Bas files from the directory of your source codes (to avoid any confusion).
  6. In your Visual Basic project, delete the reference of dependency to the WDHF.bas and WINDEV.bas files.
  7. Copy the following files into the directory of your application.
    • WDHF.bas (available in the "External Languages\EN\Basic" subdirectory of the WINDEV installation directory).
    • WINDEV.Bas (available in the "External Languages\EN\Basic" subdirectory of the WINDEV installation directory).
    • <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).
  8. Add these 4 files to the Visual Basic project.
  9. Delete the calls to CALLDDE from your Visual Basic application. This function could only be used in the applications in 16-bit mode.
  10. You can manage menus through 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
  11. Recompile your Visual Basic project.
    Warning: the .Bas file generated by WINDEV contains a "Main" procedure.. Keep your own "Main" procedure instead.
  12. Copy the necessary WINDEV DLLs into the directory of the executable of your application. Please note: the wdxxxle.dll DLL is mandatory.
Note: To find out which DLLs you need, create your application executable in WINDEV.
Versión mínima requerida
  • Versión 10
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 11/01/2025

Señalar un error o enviar una sugerencia | Ayuda local