5,351

(2 replies, posted in Russian)

Приложите пожалуйста ваш проект с описанием действий, приводящих к этой ошибке.

Vitaly wrote:

Огромное спасибо!  Работает! Есть только один недостаток - если какое-либо поле NULL (не заполнено), то при вычислении максимума вернет NULL.

Попробуйте так

(SELECT MAX(IFNULL("1В",0), IFNULL("1П",0), IFNULL("1О",0)) FROM Baza Bz WHERE Bz.id=Baza.id)

5,353

(3 replies, posted in Reports)

Приветствую,


Готово.

Gilberto_Schiavinatto wrote:

Hi, Dmitry
For me is SQL novelty, I know nothing.
Please could ride SQL data exemple attachment.
The sample I sent earlier is not the current need.

Done:

5,355

(1 replies, posted in Reports)

Hello,


Sorry for delay.
Please check out this example:
http://myvisualdatabase.com/forum/misc. … download=1

5,356

(1 replies, posted in Reports)

No, if you need print form, press Alt+Print Screen, then open MS Word and press Ctrl+V to paste this form to word document.

5,357

(2 replies, posted in SQL queries)

Hello,


Unfortunately I can't answer on this question, I need to see your database structure.


Please make an simple project example with this problem.

Try this query,

SELECT round((julianday(datefield1) - julianday(datefield1))/30) as MonthsDiff from TableName;

5,359

(5 replies, posted in Russian)

razdrob
Проверьте, возможно в настройки кнопки Поиск вы добавили TableGrid в первый список "1. Выберите компоненты учавствующие в поиске"


Если не так, тогда пожалуйста приложите ваш проект, проверю.

Видимо для этой кнопки вы присвоили действие "Закрыть форму", чего не нужно было делать.


Сделать подтверждение при закрытии на системный значек к сожалению пока возможности нет.

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

(SELECT MAX("1В", "1П", "1О") FROM Baza Bz WHERE Bz.id=Baza.id)

Date of files generates by Windows OS, what exactly is the problem?

Приветствую,

Попробуйте более простой запрос для выч. поля

(SELECT MAX(1В, 1П, 1О, 2В, 2П, 2О) FROM Baza Bz WHERE Bz.id=Baza.id)

radsoft
Yes, it's ok.

Hello,


Thank you for the bug report, fixed.
Please download latest beta version here:
https://www.dropbox.com/s/kfh2q7h8l73lx … a.zip?dl=0


Thanks.

Да вроде все нормально )

5,367

(5 replies, posted in Russian)

Приложите пожалуйста ваш проект с этими данными, постараюсь что нибудь придумать.

Вы можете переместить данные из одной таблицы в другую или в туже одним запросом

INSERT INTO table1 ( column1 ) SELECT col1 FROM table2  

5,369

(5 replies, posted in General)

derek
Hello,


Removing repeating data on rows looks excellent but the code is a bit complex. 
Do you think this might be a tablegrid property in a future release or will it stay as a script?

TableGrid support this function with the ability to expand child records, but I need implement it to MVD.


Also, is it possible to add sub-totalling (like you can with grid footers but at change of non-repeating data) - see attached screenshot?

Sub-totalling is not supported, you can do it using report system.

5,370

(4 replies, posted in Script)

Here you can find some articles about Pascal syntax:
http://www.marcocantu.com/epascal/
http://101.lv/learn/delphi/
http://www.delphibasics.co.uk/
http://delphi.about.com/od/beginners/a/dbeginner6.htm
http://www.delphibasics.co.uk/Article.asp?Name=FirstPgm
https://blog.udemy.com/pascal-programming/

5,371

(13 replies, posted in General)

rjkantor
I made some change to this pragma is works, please download latest version here:
https://www.dropbox.com/s/kfh2q7h8l73lx … a.zip?dl=0


1. You should delete sqlite.db file from your project.


2. Put PRAGMA key="password" to between begin end. in your script project.
example:

begin
    SQLExecute('PRAGMA key = ''passphrase'';');
end.

3. Save the project.
4. Copy your sqlite.dll to the project folder.
5. Run your project from the project folder. (if you run the project from MVD, your file sqlite.dll will be replaced original version)

5,372

(9 replies, posted in Script)

The Random function generates random numbers. They can be floating point numbers in the range :

0 <= Number < 1.0


if you need random values from 0 to 99:

var
    n: extended;
    i: integer;
begin
    n := Random*100; // with floating point
    i := Trunc(Random*100); // int value

5,373

(1 replies, posted in Script)

I using original version SQLite library in MVD and there is no ReKey Pragma.

5,374

(1 replies, posted in Script)

Hello,


Sorry for delay, I was on vacation.


Functions CompressFile and DecompressFiles don't works with zip files, these function using zlib file format.

5,375

(4 replies, posted in Russian)

BezDNaU wrote:

Ещё как. Сам не решил. Пробовал FastReport.Net Trial там есть такая возможность https://www.youtube.com/watch?v=MyQNXmRGN6M.

Сделал для вас проект с примером.


Обратите внимание в дизайнере отчета, у компонента GroupHeader1, установлено свойство StartNewPage = True