(textA||textB||textC)

если запятые и пробелы нужны, то так:

(textA||', '||textB||', '||textC)

Отобразится при условии, что все три поля не пустые ( NOT NULL )

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=9822&download=0

A test application that implements the principle of page-by-page display of data. You can experiment with the page size and number of entries to see the performance.

jean.brezhonek wrote:

For K245

Are you still interested in my French translation of your files?

JB

Yes, I will gladly publish them ))

You are on the right track: for so many posts, you need to use pagination. The question of whether it is necessary to load records as the grid scrolls is debatable for me. It is easier to use special buttons for page loading, as is usually done on sites.

Отображение табличных данных

https://k245.ru/wp-content/uploads/2023/08/tablitsa-1.jpg

Компонент Таблица (TdbStringGridEx) - настройка внешнего вида и поведения: фильтрация, сортировка, редактирование, выравнивание  (non-code),

https://k245.ru/mvdb/otobrazhenie-tabli … annyh.html

Проект “Библиотека” v.2.1

https://k245.ru/wp-content/uploads/2023/08/izobrazhenie_2023-08-27_102032145.png

Продолжаем закреплять полученные знания о формах и кнопках и дорабатываем проект “Библиотека” v.2.0

https://k245.ru/mvdb/proekt-biblioteka-v-2-1.html

Done

Волшебная кнопка MVDB

https://k245.ru/wp-content/uploads/2023/08/volshabnaya-knopka.jpg

Кнопка - простой и мощный элемент My Visual Database, с помощью которого решается 90% основных задач управления работой приложения.

https://k245.ru/mvdb/volshebnaya-knopka-mvdb.html

Like this?
http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=9810&download=0

Формы

https://k245.ru/wp-content/uploads/2023/08/Zemlya-v-kosmose.jpg


Этот раздел носит справочный характер, так как содержит общую информацию не только по формам, используемых при разработке приложений в My Visual Database, но и по общим свойствам других компонентов пользовательского интерфейса.


https://k245.ru/mvdb/formy.html

Проект “Библиотека” v.2.0

https://k245.ru/wp-content/uploads/2023/08/bib1.jpg

Второй учебный non-code проект также, как и первый, будет на библиотечную тему, но теперь мы будем хранить сведения о книгах, авторах и жанрах, что позволит нам использовать знания о реляционных базах данных и сведения о возможностях редактора MVDB.


https://k245.ru/mvdb/proekt-biblioteka-v-2-0.html

sparrow wrote:

Целое число    Для хранения целых чисел в диапазоне [-9223372036854775808 .. 9223372036854775807]



При выводе из базы  в таблицу числа 9223372036854775807 получаем is not a valid integer value

type Integer = -2147483648..2147483647

Благодарю за обратную связь. Действительно, диапазоны целых чисел в SQLite и MVDB не совпадают, добавлю соотвествующее примечание.

Редактор структуры БД

https://k245.ru/wp-content/uploads/2023/08/1647608820_12-kartinkin-net-p-kartinki-matritsi-12.jpg

Редактор структуры базы данных является одним из важнейших инструментов разработки информационной системы, которая должна хранить и обрабатывать данные. В этом разделе подробно разбираются возможности встроенного в My Visual Database (MVDB) редактора структуры БД. Первый опыт работы с редактором можно получить при создании проекта “Библиотека v.1.0”, теперь настало время подробно изучить редактор и все его возможности.


https://k245.ru/mvdb/redaktor-struktury-bd-2.html

tcoton wrote:
k245 wrote:

The button will open the form and update the contents of the table on it only if the table is already configured to display data. If the data in the table is displayed through the search button or the SQL query button, then automatic updating will not occur. In this case, you need to execute the click method for the button.

That I understood, hence my question: what is the code behind the button?

The picture in my first post illustrates the very same project with the very same data. The difference being, I want to use a picture as a button since the button are very limited graphically speaking.

While waiting for answers, I went for the scripted onshow dbupdate but I am still curious.

The developer of this system could have answered your question more precisely, and we can only speculate )))

tcoton wrote:

That answers part of the question, is there a very specific code behind the buttons so that when we use the "Show Form" action, it automatically performs a grid.dbupdate on any grid displayed on the form opened?

The button will open the form and update the contents of the table on it only if the table is already configured to display data. If the data in the table is displayed through the search button or the SQL query button, then automatic updating will not occur. In this case, you need to execute the click method for the button.

Реляционные базы данных

https://k245.ru/wp-content/uploads/2023/08/informatsiya.jpg

Структура реляционных БД. Типы связей (один-к-одному, один-ко-многим, многие-ко-многим), нормализация (первая, вторая и третья форма).

https://k245.ru/mvdb/relyatsionnye-bazy-dannyh.html

https://legatomusic.ru/nas/h500/img/cdimg2/00/56/55/01.jpg

vovka3003 wrote:

OLE-шкой через WMI можно же...

Это оно?

https://assets.zabbix.com/img/brands/wmi.png

https://learn.microsoft.com/ru-ru/windo … pi-for-wmi

Средствами MVDB:

1. создаете текстовый файл  (  wmic diskdrive list > result.txt ) с расширением .cmd и сохраняете его (например, через TStringList.SaveToFile( 'getdata.cmd' )  )
2. вызываете его на выполнение ( OpenFile( 'getdata.cmd' ) )
3. открываете текстовый файл результата ( TStringList.LoadFromFile ('result.txt') )

wmic в помощь:


wmic diskdrive list
wmic logicaldisk get description,name


Алгоритм такой: вызываете консольную команду с выводом результата в файл, затем парсите файл результата.

Проект “Библиотека” v.1.0

https://k245.ru/wp-content/uploads/2023/08/bib1.jpg

Приложение с одной таблицей. Компоненты TAForm и TdbStringGridEx. Свойства Name, Top, Left, Width, Height, Sizeable, Editable, Settings, Anchors.

https://k245.ru/mvdb/proekt-biblioteka-v-1-0.html

73

(7 replies, posted in General)

jrga wrote:

I can work with views created in the database via script. Does anyone know if I can include a view, after being created in sqlite, in the "Database tables" tab of Myvisualdatabase. This would dramatically increase development on the MVD.

Theoretically, there should be no restrictions. To access views, do you use the button in SQL query mode? It would be easier if you added your project.

function IncYear(ADate:TDateTime; AValue:integer):TDateTime;
// изменить дату на нужное число лет
begin
  Result := IncMonth(ADate,AValue*12);
end;

В вашем проекте около 20 форм. Уточните, о каких формах (таблицах) идет речь?