SAGE DATA OBJECTS > C#


sage line 50 sage line 100 sage line 50 training 50 line pos sage sage line 50 financial controller 100 line sage software 50 line sage software training 50 accounting line sage software sage line 50 software sage line sage line 50 training course 50 controller financial line sage v12 sage line 50 note 100 50 line sage 50 cheap discount line sage Searches done in April 2006 Count Search Term sage software sage accounting software sage payroll software sage software inc 100 line sage software 50 line sage software training act sage software sage payroll software training sage software training 50 accounting line sage software sage software mas 90 sage line 50 software accounting sage sales software sage payroll software course sage account software discount sage software sage accounting software uk sage book keeping software form sage software sage line50 software C# .NET Visual Basic .NET VB.NET Component OCX DLL Return to Sage Data Objects for .NET homepage Open Method

Open Method

The Open method opens a file in a specific mode. A file must be opened before it can be read or written to.

Syntax

object.Open openmode

The Open method syntax has these parts;

Part Description
object An expression that evaluates to a SDOFile, SDOLinkedFile and SDOLinkedSubFile object.
openmode The mode to open the file in as described in settings;

Settings

Possible settings for openmode are;

Part Description Value
sdoRead Open file for Read Only access. 0
sdoReadWrite Open file for Read/Write access. 1

Return Values

The Open method returns the following values;

Part Description
-1 (TRUE) The file was successfully opened.
0 (FALSE) The file could not be opened.

Remarks

It is now not necessary to indicate the type of share mode when opening a file as the object handles this automatically.