Для этого можно использовать SQLite функцию Char
SQLQuery('SELECT Id, char(13) || char(10) || Name FROM Client WHERE Client.id=1', ResultsDoljnost1);
другие SQLite функции можно найти здесь
https://www.sqlite.org/lang_corefunc.html
My Visual Database → Posts by DriveSoft
Для этого можно использовать SQLite функцию Char
SQLQuery('SELECT Id, char(13) || char(10) || Name FROM Client WHERE Client.id=1', ResultsDoljnost1);
другие SQLite функции можно найти здесь
https://www.sqlite.org/lang_corefunc.html
Попробуйте так
SQLQuery('SELECT Id, ''-'' || Name FROM Client WHERE Client.id=1', ResultsDoljnost1);
ShowMessage не обладает каким либо расширенным функционалом, вместо него используйте MessageBox
Пример
if IDYES = MessageBox('Сообщение', 'Заголовок', MB_YESNO+MB_ICONINFORMATION) then ShowMessage('Вы нажали ДА');
Доступные кнопки:
MB_OK
MB_OKCANCEL
MB_ABORTRETRYIGNORE
MB_YESNOCANCEL
MB_YESNO
MB_RETRYCANCEL
Для проверки результата нажатия:
IDOK
IDCANCEL
IDABORT
IDRETRY
IDIGNORE
IDYES
IDNO
Доступные иконки
MB_ICONWARNING
MB_ICONINFORMATION
MB_ICONASTERISK
MB_ICONQUESTION
MB_ICONSTOP
MB_ICONERROR
Для текста используйте свойство TagString
frmNote.Memo1.TagString := frmNote.Memo1.Text;
Hello.
That's how it was meant to be. Print button gets data from database, so it guarantees that the actual data from the form is included in the report.
Please, let me know, why is this a problem for you?
Hello.
It looks like you don't have permission to write in this folder.
Where placed your project folder?
Hello.
Fixed, please download the project again.
RasNikGal
Все предложения учтены и исправлены.
Nice example, thanks!
Unfortunately, there is no such possibility.
It's planned.
Приветствую.
пример
procedure Form1_OnShow (Sender: TObject; Action: string);
begin
Form1.GridEmployees.dbSQL:='SELECT id, "$autoinc", lastname, firstname, salary FROM employees'; // the id field, want to be able to edit or delete the entry from the table component
//Form1.GridEmployees.dbParentTable := 'ParentTable';
//Form1.GridEmployees.dbParentTableId := 1;
Form1.GridEmployees.dbGeneralTable := 'employees'; // Optional (in the case of complex SQL queries with sub queries, you need to choose the main table of the database, also it need to be able to edit or delete the entry from the table component)
Form1.GridEmployees.dbListFieldsNames :='delete_col,#,name2,name3,name4'; // If you do not want to see the value of the id in the component table, enter a name for the column delete_col
Form1.GridEmployees.dbSQLExecute;
end;
procedure Form1_TableGrid1_OnChange (Sender: TObject);
begin
Form1.TableGrid1.Columns[0].Alignment := taCenter; // первая колонка - выравнивание по центру
Form1.TableGrid1.Columns[1].Alignment := taRightJustify; // вторая колонка - выравнивание по правому краю
end;
А можно открыть ComboBox нажатием на отдельную кнопку?...
Да.
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
Form1.ComboBox1.DroppedDown := True;
end;
У формы есть свойство CalledForm, которое ссылается на форму, которая ее открыла с помощью кнопок с действием Новая запись, Показать запись, Показать форму
Form2.CalledForm.Name // получаем имя форма, которая вызвала открытие формы Form2
Не совсем понял о чем речь, но данный материал можно найти по данной ссылке
http://myvisualdatabase.com/forum/viewtopic.php?id=2554
Hello.
Using property MarkerIcon you can specify own icon marker using the picture in PNG format. You can specify the URL of the graphic file, or a local file.
The URL of the marker should start with http
When specifying a local file, you can specify both an absolute path (e.g.: c:\marker.png) and a relative path. For example, marker.png, in this case this graphic file should be located in the folder of your project. Also the file can be placed in a subfolder, for example: images\marker.png.
Hello.
You have a pretty big project, please provide step by step instruction to reproduce the problem.
Hello.
Change property of the map
DefaultToCurrentLocation = False
Perhaps Google made some change in the API.
Screen.Width;
Screen.Height;
Hello.
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
Form2.PageControl1.ActivePageIndex := 1; // 0 - first tab, 1 - second tab and so on...
end;
Получить информацию о текущем пользователе можно так
Application.User.id;
Application.User.Username;
Application.User.Email;
Application.User.First_name;
Application.User.Last_name;
Application.User.Role;
Application.User.RoleId;
Application.User.is_admin;
Application.User.is_active;
Application.User.is_logged;
Application.User.Last_login;
Application.User.Date_joined;
Form1.DateTimePicker1.DateTime := EncodeDate(2020, 12, 31);
Hello.
Please attach your project, I will test it.
Как работать с управлением доступа, можно почитать здесь
http://myvisualdatabase.com/help_ru/roles/roles.html
При добавлении пользователя вы указывали пароль, который необходим для входа.
Приложите пожалуйста ваш проект (zip файл без exe и dll) и сообщите имя пользователя, который вы не видете в выпадающем списке.
My Visual Database → Posts by DriveSoft
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi