PreviousNextIndex

USING statement

Allows you to reference a single specified ABL or .NET object type, or reference all the types in an ABL package or .NET namespace, using their unqualified type names.

Syntax

USING 
  { object-type-name | { package-name | namespace } .* } 
  [ FROM { ASSEMBLY | PROPATH } ] 

object-type-name
{ package-name | namespace } .*
[ FROM { ASSEMBLY | PROPATH } ]
Examples

You can use either one of the following code fragments to reference the class Acme.BusObjs.Customer using its unqualified or fully qualified class name:

USING Acme.BusObjs.*.  
DEFINE VARIABLE CustObj  AS CLASS Customer. 
DEFINE VARIABLE CustObj2 AS CLASS Acme.BusObjs.Customer. 

USING Acme.BusObjs.Customer.  
DEFINE VARIABLE CustObj  AS CLASS Customer. 
DEFINE VARIABLE CustObj2 AS CLASS Acme.BusObjs.Customer. 

The ControlCollection class is an inner class of the .NET class System.Windows.Forms.Control. Therefore, you can reference these class types by their unqualified type names like this:

USING System.Windows.Forms.* FROM ASSEMBLY. 
DEFINE VARIABLE rControl    AS CLASS Control. 
DEFINE VARIABLE rCollection AS CLASS Control+ControlCollection. 

Notes
See also

CLASS statement, INTERFACE statement, Type-name syntax


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex