CRDBGrid gives error

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
john_kuiper
Posts: 19
Joined: Tue 15 May 2012 09:34

CRDBGrid gives error

Post by john_kuiper » Wed 23 May 2012 13:41

I know CRDBGrid is not supported anymore.

I looked at the source and found these strange things:
- some stringvariables are declared with _string
- the function uppercase() was set as _uppercase

What is the meaning of this? After I corrected the _string and uppercase, the software was compiled and the components workst fine (for now).

AndreyZ

Re: CRDBGrid gives error

Post by AndreyZ » Wed 23 May 2012 14:57

Hello,

Please specify the exact error that you encountered with TCRDBGrid. Also please specify the exact version of your IDE.

john_kuiper
Posts: 19
Joined: Tue 15 May 2012 09:34

Re: CRDBGrid gives error

Post by john_kuiper » Thu 24 May 2012 07:20

line 2339:

Code: Select all

procedure TCRDBGrid.LinkActive(Value: boolean);
var
  St: _string;
  Parser: TParser;
  Code: integer;
  Lex: _string;
  i: integer;
  FieldName: _string;
  SortColInfo: TSortColInfo;
  Ind: integer;
begin
....
end
line 2392:

Code: Select all

FieldName := _UpperCase(Lex);
Also line 2398, 2406, 2415 and 2421

I don't know exactly the error message, bust as far as I know the compile told "_string could not be found and will not compile"

I'm using D2009 pro

AndreyZ

Re: CRDBGrid gives error

Post by AndreyZ » Thu 24 May 2012 10:34

The _string type is located in the CRTypes unit, and the _UpperCase function is located in the CRFunctions unit. Both these units are added to the USES clause of the CRGrid unit that contains the source code of the TCRDBGrid component. Please make sure you didn't remove these units from the CRGrid unit.
If the problem persists, please specify the exact MyDAC version you are using. You can learn it from the About sheet of TMyConnection Editor.

Post Reply