AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones varias de WINDEV
  • Example: Using a class from a WDL file
Example: Using a class from a WDL file
The following example is used to handle a class from a WINDEV library loaded by LoadWDL.
GLOBAL
gExternalObj is dynamic object
 
LOCAL
sCompilErr is string
 
IF LoadWDL("MyLibrary.WDL") = -1 THEN
EndProgram("WDL not loaded" + CR + ErrorInfo())
ELSE
Info("WDL loaded")
END
 
sCompilErr = Compile("AllocateObj", "gExternalObj=new object cObjWDL")
IF sCompilErr = "" THEN
ExecuteProcess("AllocateObj", trtProcedure)
Compile("AllocateObj", "")
Info("Allocation OK")
ELSE
EndProgram("Pb allocating the object" + CR + sCompilErr)
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

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