(textA||textB||textC)
если запятые и пробелы нужны, то так:
(textA||', '||textB||', '||textC)
Отобразится при условии, что все три поля не пустые ( NOT NULL )
My Visual Database → Posts by k245
(textA||textB||textC)
если запятые и пробелы нужны, то так:
(textA||', '||textB||', '||textC)
Отобразится при условии, что все три поля не пустые ( NOT NULL )
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.
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.
Отображение табличных данных
Компонент Таблица (TdbStringGridEx) - настройка внешнего вида и поведения: фильтрация, сортировка, редактирование, выравнивание (non-code),
Проект “Библиотека” v.2.1
Продолжаем закреплять полученные знания о формах и кнопках и дорабатываем проект “Библиотека” v.2.0
Done
Волшебная кнопка MVDB
Кнопка - простой и мощный элемент My Visual Database, с помощью которого решается 90% основных задач управления работой приложения.
Like this?
Формы
Этот раздел носит справочный характер, так как содержит общую информацию не только по формам, используемых при разработке приложений в My Visual Database, но и по общим свойствам других компонентов пользовательского интерфейса.
Проект “Библиотека” v.2.0
Второй учебный non-code проект также, как и первый, будет на библиотечную тему, но теперь мы будем хранить сведения о книгах, авторах и жанрах, что позволит нам использовать знания о реляционных базах данных и сведения о возможностях редактора MVDB.
Целое число Для хранения целых чисел в диапазоне [-9223372036854775808 .. 9223372036854775807]
При выводе из базы в таблицу числа 9223372036854775807 получаем is not a valid integer value
type Integer = -2147483648..2147483647
Благодарю за обратную связь. Действительно, диапазоны целых чисел в SQLite и MVDB не совпадают, добавлю соотвествующее примечание.
Редактор структуры БД
Редактор структуры базы данных является одним из важнейших инструментов разработки информационной системы, которая должна хранить и обрабатывать данные. В этом разделе подробно разбираются возможности встроенного в My Visual Database (MVDB) редактора структуры БД. Первый опыт работы с редактором можно получить при создании проекта “Библиотека v.1.0”, теперь настало время подробно изучить редактор и все его возможности.
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 )))
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.
Реляционные базы данных
Структура реляционных БД. Типы связей (один-к-одному, один-ко-многим, многие-ко-многим), нормализация (первая, вторая и третья форма).
OLE-шкой через 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
Приложение с одной таблицей. Компоненты TAForm и TdbStringGridEx. Свойства Name, Top, Left, Width, Height, Sizeable, Editable, Settings, Anchors.
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 форм. Уточните, о каких формах (таблицах) идет речь?
My Visual Database → Posts by k245
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi