Skip to main content

Problem:

Is it possible to use .Net Classes without using the Repository Section ?

Resolution:

This is possible using the "type" keyword to specify a class on an object declaration. For example you can declare a variable as follows:-

       01 wsToday type "System.DateTime".

In addition to this you can specify namespaces via the "ilusing" directive so that you can drop the use of a namespace to further simplify the declatation. For example:-

      $set ilusing(System)

.....

       01 wsTomorrow     type "DateTime".

Attached to this article is a working example showing how the syntax can be used.

Attachments:

NoRepository.zip

Old KB# 1431