Для этого можно использовать 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);

103

(1 replies, posted in Russian)

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

104

(2 replies, posted in Russian)

Для текста используйте свойство TagString

frmNote.Memo1.TagString := frmNote.Memo1.Text;

105

(12 replies, posted in General)

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?

106

(1 replies, posted in General)

Hello.


It looks like you don't have permission to write in this folder.
Where placed your project folder?

107

(3 replies, posted in Database applications)

Hello.


Fixed, please download the project again.

108

(20 replies, posted in Russian)

RasNikGal


Все предложения учтены и исправлены.

109

(1 replies, posted in FAQ)

Nice example, thanks!

110

(3 replies, posted in General)

Unfortunately, there is no such possibility.

111

(3 replies, posted in General)

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;

114

(54 replies, posted in Russian)

vit007 wrote:

А можно открыть ComboBox нажатием на отдельную кнопку?...

Да.


procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
    Form1.ComboBox1.DroppedDown := True;
end;

У формы есть свойство CalledForm, которое ссылается на форму, которая ее открыла с помощью кнопок с действием Новая запись, Показать запись, Показать форму


Form2.CalledForm.Name // получаем имя форма, которая вызвала открытие формы Form2

116

(4 replies, posted in Russian)

Не совсем понял о чем речь, но данный материал можно найти по данной ссылке
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.

118

(5 replies, posted in General)

Hello.


You have a pretty big project, please provide step by step instruction to reproduce the problem.

119

(1 replies, posted in General)

Hello.


Change property of the map
DefaultToCurrentLocation = False


Perhaps Google made some change in the API.

    Screen.Width;
    Screen.Height;

121

(5 replies, posted in General)

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);

124

(9 replies, posted in General)

Hello.


Please attach your project, I will test it.

Как работать с управлением доступа, можно почитать здесь
http://myvisualdatabase.com/help_ru/roles/roles.html


При добавлении пользователя вы указывали пароль, который необходим для входа.


Приложите пожалуйста ваш проект (zip файл без exe и dll) и сообщите имя пользователя, который вы не видете в выпадающем списке.