|
|
|
|
- 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|