PreviousNextIndex

Load( ) method (Class)


(Windows only; GUI for .NET only)

Loads resources from a .NET XML resource (.resx) file associated with a .NET form class, and returns a System.Resources.ResXResourceSet instance through which you can access the resources by name.

Return type: System.Resources.ResXResourceSet class (from the .NET Framework)

Access: PUBLIC STATIC

Applies to: Progress.Util.ResourceHelper class

Syntax
ResourceHelper:Load( INPUT filename AS CHARACTER, INPUT path AS CHARACTER ) 

filename
path

The following example loads the resource file form1.resx from PROPATH and accesses an image in the resource file:

USING System.Windows.Forms.* FROM ASSEMBLY. 
USING Progress.Util.*        FROM ASSEMBLY. 
DEFINE VARIABLE resources AS System.Resources.ResXResourceSet NO-UNDO. 
DEFINE VARIABLE image     AS System.Drawing.Image             NO-UNDO. 
resources = ResourceHelper:Load( "form1.resx", "PROPATH" ). 
image = CAST( resources:GetObject( "open.Image" ), System.Drawing.Image ). 

For information on the System.Resources.ResXResourceSet class, refer to the .NET Framework class library.


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex