Searching a module

A program accesses an EMu module (or table, the terms are used interchangeably) using the Module class. The name of the table to be accessed is passed to the Module constructor. For example:

C#

using IMu;

// ⋯

Module parties = new Module("eparties", session);

VB

Dim parties = New IMu.Module("eparties", session)

Note: The IMu class name Module conflicts with a Visual Basic reserved word and it is therefore necessary to use the fully qualified name IMu.Module.

This code assumes that a Session object called session has already been created. If a Session object is not passed to the Module constructor, a session will be created automatically using the DefaultHost and DefaultPort class properties. See Connecting to an IMu server for details.

Once a Module object has been created, it can be used to search the specified module and retrieve records.

Any one of the following methods can be used to search for records within a module: