Check whether the source code was compiled without errors.
<oCodeblock>:IsValid([<lNilCheck>]) Æ lSuccess
|<lNilCheck>||A logical value that defines whether the created code block should be checked for the return of a NIL value. Whether the code block returns a valid value can be checked with this verification. The value FALSE is used as default.|
|lSuccess||A logical value that indicates whether the source code was compiled without error.|
|TRUE||The source code was compiled without error.|
|FALSE||The source code could not be compiled without error.|
bCodeblock:IsValid() checks whether the Sourcecode was compiled without errors by the method bCodeblock:Compile(). The method also can optionally check whether a return value of NIL for the created code block is acceptable.