Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Delphi [игнор отключен] [закрыт для гостей] / Lazarus. Где TCSVDataSet ? / 7 сообщений из 7, страница 1 из 1
01.02.2019, 10:21
    #39767943
Ghost Writer
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Lazarus. Где TCSVDataSet ?
Lazarus 1.8.4
На вкладке Data Access у меня отсутствует компонент TCSVDataSet, описанный тут http://wiki.freepascal.org/Data_Access_tab
Какой пакет надо установить ?
Еще не было TParadox, но появился после установки пакета lazparadox 0.0
В доступных для установки по "csv" не ищет.
...
Рейтинг: 0 / 0
01.02.2019, 10:32
    #39767954
Док
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Lazarus. Где TCSVDataSet ?
Ghost Writer,

никуда он не делся :) лежит тут (для Laz 2.0.x)

fpc\3.0.4\source\packages\fcl-db\src\base\csvdataset.pp
...
Рейтинг: 0 / 0
01.02.2019, 10:48
    #39767965
Ghost Writer
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Lazarus. Где TCSVDataSet ?
Док,

а как установить его ? создавать ручками пакет ?
...
Рейтинг: 0 / 0
01.02.2019, 10:54
    #39767970
Док
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Lazarus. Где TCSVDataSet ?
Ghost Writer,

у меня подозрение, что его установка зашита в сценарии сборки IDE. По-крайней мере, в версии 1.8.0 его тоже нет. Проще скачать какой-нибудь транк лазаря и посмотреть в исходниках, где и как он регистрируется.

зы. щас посмотреть не могу, не дома.
...
Рейтинг: 0 / 0
01.02.2019, 10:58
    #39767973
Док
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Lazarus. Где TCSVDataSet ?
Докпосмотреть в исходниках
вот, поиском нашел: lazarus_21_RC3\packager\pkgregisterbase.pas

Код: pascal
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
{
 /***************************************************************************
                            pkgregisterbase.pas
                            -------------------


 ***************************************************************************/

 ***************************************************************************
 *                                                                         *
 *   This source is free software; you can redistribute it and/or modify   *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This code is distributed in the hope that it will be useful, but      *
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 *   General Public License for more details.                              *
 *                                                                         *
 *   A copy of the GNU General Public License is available on the World    *
 *   Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also      *
 *   obtain it by writing to the Free Software Foundation,                 *
 *   Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1335, USA.   *
 *                                                                         *
 ***************************************************************************

  Author: Mattias Gaertner

  Abstract:
    Registration of the FCL components used by the IDE.
}
unit PkgRegisterBase;

{$mode objfpc}{$H+}

interface

uses
  LazarusPackageIntf,
{$ifdef mswindows}
  ServiceManager,
{$endif}
  Classes, SysUtils, Process, DB, BufDataset, csvdataset, SimpleIPC, XMLConf, EventLog,
  UTF8Process;

procedure RegisterFCLBaseComponents;
procedure RegisterLazUtilsComponents;

implementation

procedure RegisterDB;
begin
  RegisterComponents('Data Access',[TDatasource,TBufDataset, TCSVDataset]); // this bites dbflaz
end;

procedure RegisterSimpleIPC;
begin
  RegisterComponents('System',[TSimpleIPCClient, TSimpleIPCServer]);
end;

procedure RegisterXMLConf;
begin
  RegisterComponents('System',[TXMLConfig]);
end;

procedure RegisterEventLog;
begin
  RegisterComponents('System',[TEventLog]);
end;

{$ifdef mswindows}
procedure RegisterServiceManager;
begin
  RegisterComponents('System',[TServiceManager]);
end;
{$endif mswindows}

procedure RegisterProcess;
begin
  RegisterComponents('System',[TProcess]);
end;

procedure RegisterFCLBaseComponents;
begin
  RegisterUnit('DB',@RegisterDB);
  RegisterUnit('SimpleIPC', @RegisterSimpleIPC);
  RegisterUnit('XMLConf',@RegisterXMLConf);
  RegisterUnit('EventLog',@RegisterEventLog);
{$ifdef mswindows}
  RegisterUnit('ServiceManager',@RegisterServiceManager);
{$endif mswindows}
  RegisterUnit('Process',@RegisterProcess);
end;

procedure RegisterUTF8Process;
begin
  RegisterComponents('System',[TProcessUTF8]);
end;

procedure RegisterLazUtilsComponents;
begin
  RegisterUnit('UTF8Process',@RegisterUTF8Process);
end;

initialization
  // register package FCL and LazUtils here to avoid pulling in all units
  // and to keep those package clean of designtime code.
  RegisterPackage('FCL', @RegisterFCLBaseComponents);
  RegisterPackage('LazUtils', @RegisterLazUtilsComponents);

end.

...
Рейтинг: 0 / 0
01.02.2019, 11:09
    #39767988
Док
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Lazarus. Где TCSVDataSet ?
Там еще, помимо правки исходников, для 1.8.x надо будет добавить три иконки tcsvdataset_ххх.png
отсюда https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/images/components/?root=lazarus
сюда <laz_root_dir>\images\components\...

зы. ИМХО, проще поставить последний RC :)
...
Рейтинг: 0 / 0
01.02.2019, 11:16
    #39767994
Ghost Writer
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Lazarus. Где TCSVDataSet ?
Всё ясно, Док. спасибо!Докзы. ИМХО, проще поставить последний RC :)
верно. думаю, что не на столько он мне нужен. просто заценить хотел.
...
Рейтинг: 0 / 0
Форумы / Delphi [игнор отключен] [закрыт для гостей] / Lazarus. Где TCSVDataSet ? / 7 сообщений из 7, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]