Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread New Data Module Question - is this a Bug or Design for some reason this way?
Fri, Aug 19 2016 7:56 AMPermanent Link

Walter Matte

Tactical Business Corporation

  frmLogin: TfrmLogin;


uses uglobal, udm, ufrmMain;

procedure TfrmLogin.btnLoginClick(Sender: TObject);
 QLogin.Params.Add('SPAUSERLOGON=' + Uppercase(edUser.Text));
 QLogin.Params.Add('SPAPASSWORD=' + Uppercase(edPass.Text));
//  dm.LoadRows(QLogin);            //  This worked in 2.05 Beta
 database.LoadRows(QLogin);   //  Now need to use this in 2.05 B1

dm is a Datamodule,
QLogin is a TDataset that is not on the Datamodule but on the form TfrmLogin

In the 2.05 Beta this worked fine:


In the 2.05 B1 release I now get this error:

The "QLogin" dataset cannot be loaded using the "dm" database

Is this a bug or is it designed as such?

Fri, Aug 19 2016 11:21 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.


Email timyoung@elevatesoft.com


<< Is this a bug or is it designed as such? >>

It's as-designed and was caught late in the 2.05 beta after the last beta release.  It doesn't actually matter for loading rows, but it *does* matter for transactions, so I decided to just make it fail as soon as possible with an exception.

Tim Young
Elevate Software