PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Using a class found in a WDL
Example: Using a class found in a WDL
The following example is used to handle a class found in 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Example
http://windevdesenvolvimento.blogspot.com/2015/02/windev-wdl-dividir-projetos.html
BOLLER
25 Jan. 2019