Page 1 of 1
CRDBGrid gives error
Posted: Wed 23 May 2012 13:41
by john_kuiper
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).
Re: CRDBGrid gives error
Posted: Wed 23 May 2012 14:57
by AndreyZ
Hello,
Please specify the exact error that you encountered with TCRDBGrid. Also please specify the exact version of your IDE.
Re: CRDBGrid gives error
Posted: Thu 24 May 2012 07:20
by john_kuiper
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:
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
Re: CRDBGrid gives error
Posted: Thu 24 May 2012 10:34
by AndreyZ
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.