ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
  • 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help