Access the full power of ActiveX Dll's from Clarion versions 2.1 and later.
cwScript Order Form and Price List
| Click Here For cwScript Documentation |
cwScript is NOT a template, but an ActiveX OCX Control written especially for Clarion. What's the difference? An ActiveX control is a self contained server program that executes commands directly from Clarion. A template is Clarion's way of generating code based on a set of rules. With an ActiveX control there are no hidden lines of code, you determine exactly how your program operates.
Why do ActiveX controls need to be written differently for Clarion?
Clarion has always stopped short when it comes to properly using ActiveX controls. To make a long story short, Clarion will not properly execute Methods, and it is extremely difficult to program Clarion to respond to events. Our controls are written to convert all methods to properties and to set error properties that can be queried instead of needing events.
| For example, in VB a method call would look like: | Answer = Ax.Eval("SomeFunction(1,2)") |
| In Cw, this would take two lines of code: | ?ole{'cwEval'}="SomeFunction(1,2)" |
| loc:Answer=?ole{'cwEval'} |
Of course, you could always write a function in Clarion to handle this and also look for errors.