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 Connect Method

Connect Method

Use the Connect method to create a connection to the Sage Line 50 data files.

Syntax

object.Connect(path, username, password, unique)

The Connect method syntax has these parts;

Part Description
object An expression that evaluates to an object in the Applies To list.
path A string expression containing the path to the Line 50 data file ACCDATA directory e.g. C:\SFW\ACCDATA
username A string expression containing the name to use for the user being connected. If the Line 50 Access Rights option is switched on this should be a valid user name, otherwise it should be 'MANAGER'
password A string expression containing the password for the relevant user specified in username. If the Line 50 Access Rights option is switched on this should be the relevant password for the relevant user, otherwise it should be the password set up for 'MANAGER'
unique A unique string expression to identify the connection to Line 50.

Return Values

The Connect method returns one of the following value;

Value Description
-1 (TRUE) A successful connection was made.
0 (FALSE) A connection was not established.

Exceptions