Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging into Sage Line 50 from Delphi

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I'm attempting to log on to Sage Line 50 data through Delphi. I'm using the following syntax :

tpUserName := edit1.text;
tpPassword := edit2.text;
TRY
// Create Instance of Engine and Workspace
SDO := CreateOLEObject('SDOEngine.8');
WS := SDO.Workspaces.Add('MyConnection');
// Connect to Data Files
WS.Connect(szDataPath, tpUserName, tpPassword, 'ThisIsUnique');
EXCEPT
MessageDlg('Unable to connect to Sage', MtWarning, [MbOK], 0);
Exit;
END;

I've set up a number of users in Sage but can only log on through Delphi using the 'manager' username and a password of blank.
I've set up users, i.e. 'User1', 'User2', etc. (with passwords the same) but I seem to be unable to log in using them through Delphi - I get the returned message that the user-name/password are not valid. However the log-ins do work fine when using Sage directly.
The Sage Developer help files indicate that 'the Line 50 Access Rights option is switched on' which it is but I still am unable to achieve my aim.
Anyone have any answer to this ?
Thanks in advance.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top