Symphony Framework
GenericFileOpen Method
Example 
Symphony.dB Namespace > DBAccess Class : GenericFileOpen Method
Returned with the assigned channel number.
The file name to "open". This should map to a database table.
The required open mode. "SU" is update mode, "SI" is input mode.
Open an instance to the database for the selected file.
Syntax
public static int GenericFileOpen( 
   int channel,
   string fileName,
   string openMode
)

Parameters

channel
Returned with the assigned channel number.
fileName
The file name to "open". This should map to a database table.
openMode
The required open mode. "SU" is update mode, "SI" is input mode.

Return Value

A value of zero (0) is success otherwise an error code.
Remarks
Enables file style managment of a database table. The Generic* methods allow easy migraiton from ISAM style processing to database managment within your application. The GenericFileOpen allows you to map the opening of a "file" to a database table.
Example
if (%instr(1, internalFileName, "USERID.ISM"))
begin
	;;we are using PostgreSQL so let's open the database/table and not the ISAM file!
	error = Symphony.dB.DBAccess.GenericFileOpen(chan, file, mode)
	xreturn
end
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DBAccess Class
DBAccess Members