Annc.Load

[This is preliminary documentation and subject to change.]

The Load method loads an announcement from a text file into an announcement object.

Syntax

object.Load( sFilename )
 

Parts

object
Object expression that resolves to an Annc object.
sFilename
String that contains the path and filename of the file to load. By convention, announcement files use the extension .ann.

Remarks

Announcements can be stored as a text file and then broadcast to the client at a later time. The Annc.Load method loads the attributes of an announcement from an announcement file into an Annc object. The announcement can then be edited. After your application has made changes, the announcement can be saved to file using the Annc.Store method.

If you are loading announcement data into an Annc object that already has values set for its properties, Load clears the old values before it loads the announcement data into the object.

For more information about the format of announcement files, see Enhancement Announcement Format.

Examples

The following example loads the announcement stored in the file MyAnn.ann into the object variable, ann,

ann.Load "C:\EnhFiles\Announcements\MyAnn.ann"
 

QuickInfo

  Windows NT: Unsupported.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in stream.idl.
  Import Library: Included as a resource in stream.dll.
  Unicode: Yes.

See Also

Creating Enhancement Announcements, Enhancement Announcement Format, Annc.Clear, Annc.Store