RefClass

See Also: RefFunc, RefProc, RefProcSet, RefTable, Destroy

Purpose

Allows referencing a class name in an undecorated manner.

Return Type

Handle

Syntax

(RefClass( {ClassName} ))

What it Does

In version of DataFlex prior to 15.1, there were certain places where class names had to be referenced using a decorated name, by prepending "U_" to the class name.

This makes referencing class names in such instances more intuitive as developers no longer need to know the special decorated naming convention and when to use it. The use of RefClass also allows for full CodeSense support in the Studio.

Example

For example, to dynamically create an object instance of the cObject class, you would have to use code like this:

Handle hoObject

Get Create U_cObject to hoObject

Now, you can do this instead:

Handle hoObject

Get Create (RefClass(cObject)) to hoObject

Notes