4,251

(31 replies, posted in General)

derek
Hello.


1. I will do it before final version.


2. In the current alpha version it's not possible but I will try to do it.

4,252

(32 replies, posted in Russian)

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


Скачайте пожалуйста последнюю бета версию.
http://myvisualdatabase.com/forum/viewtopic.php?id=2887



Пример, как получить html из TWebBrowser

Так задумано, можете изменить это поведение простым скриптом, создайте событие OnClick для кнопки, пример

procedure Form1_buttonSave_OnClick (Sender: string; Action: string);
begin
    Form1.buttonSave.dbDontResetID := True; 
end;

К сожалению чтобы определить проблему, проекта мало, необходим сам скрипт, который был сгенерирован для WebGrid и доступ к серверу.

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

menshikov-76 wrote:

https://cloud.mail.ru/public/7W7G/w9XPiYYuW попробуйте с майла.

В настройках кнопки Excel вы просто не указали, по какому полю сортировать, я указа по фирме.

Также доработал ваш шаблон отчета для печати с двумя колонками.

4,257

(37 replies, posted in Russian)

ZBear
К сожалению по данному куску скрипта не смогу определить ошибку.

4,258

(1 replies, posted in Reports)

Hello.


http://myvisualdatabase.com/forum/viewt … 220#p17220

Игоревич
По данном отрывку кода я не могу определить ошибку, видимо в скрипте используются глобальные переменные, которые не описаны в этом событии (такие как sDeletedObekt, sDeletedSistema) и формируются где то в  других частях скрипта.

4,260

(13 replies, posted in General)

Игоревич
Увы я не могу помочь с поиском пиратских програм.

4,261

(10 replies, posted in Script)

clyde wrote:

@Dmitry - That was exactly what I was looking for - thank you! I have one question though, is TdbStringGridEx referenced anywhere in the documentation or the functions reference in the code editor? I couldn't find it. Anyway, I've added an example project file to show how I'm using it. Hope it can help some other forum members.

For grid Iam using component TNextGrid 5 from bergsoft.net.
Please download attached help file for the component, look section "GridView"

4,262

(1 replies, posted in Script)

Hello.


The function RemoveDir will be in the next version.


Thanks.

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


К сожалению яндекс почему то не дает скачать проект.

4,264

(1 replies, posted in Script)

Hello.


It's not support.

4,265

(4 replies, posted in General)

AD1408
I just can't run your project, to many mistakes. I think you have errors in the calculated fields.
Also you have wrong database structure, too many relationships between tables.

4,266

(4 replies, posted in General)

kkalgidim
You should use SQL query for report in WHERE section
Date(teslimtarihi) = Date('Now','localtime','+1 day')



Please download fixed project:

4,267

(37 replies, posted in Russian)

ZBear wrote:

Ошибок больше нет, но скрипт определения пользователя так и отрабатывает не верно, ещё раз отмечу - в 2.8 всё работает.


Опишите пожалуйста подробней, что это за скрипт? У меня нет доступа к вашей базе поэтому нет тестовых данных с пользователями.

4,268

(37 replies, posted in Russian)

ZBear wrote:

При запуске из версии 3.0 неверно определяется пользователь и выходят ошибки. В 2.8 всё работает.

Исправил, скачайте пожалуйста снова последнюю версию 3.01а

4,269

(3 replies, posted in Russian)

Роман
Запретить тестировать я вам не могу, тестируйте )
Позже можно будет запрещать редактировать колонки.

4,270

(31 replies, posted in General)

doing.whatever.it.takes wrote:

i have version 2.8 with minor update license.  do i need to buy new license to use version 3?

If you have purchased a license in August 2016 or later, you will get all updates 3.xx for free.


But version 3.0 alpha can use all registered users (2.xx).

4,271

(4 replies, posted in General)

Hello.


Please attach your project.

pt.82
К сожалению я не могу понять ваш вопрос полностью, лучше приложите проект и опишите проблему в целом, что вы пытаетесь сделать.

4,273

(237 replies, posted in Russian)

motorolla
Можно скриптом

procedure Form1_TableGrid1_OnChange (Sender: string);
begin
    // запрещает изменять размер колонок мышкой  
    Form1.TableGrid1.Columns[0].Options := Form1.TableGrid1.Columns[0].Options + coFixedSize;
    Form1.TableGrid1.Columns[1].Options := Form1.TableGrid1.Columns[1].Options + coFixedSize;

    // указываем размеры колонок
    Form1.TableGrid1.Columns[0].Width := 50;
    Form1.TableGrid1.Columns[1].Width := 50;
end;

4,274

(10 replies, posted in Script)

clyde

Example:

procedure Form1_TableGrid1_OnChange (Sender: string);
begin
    TableGrid_OnChange(Form1.TableGrid1);
end;

procedure Form1_GridEmployees_OnChange (Sender: string);
begin
    TableGrid_OnChange(Form1.GridEmployees);
end;


procedure TableGrid_OnChange (Sender: TdbStringGridEx);
var
   i,k: integer;
begin
    for i := 0 to Sender.RowCount - 1 do
    begin
        for k := 0 to Sender.Columns.Count - 1 do
        begin
            Sender.Cell[k,i].Color := $00F0F0F0;
        end;
    end;
end;

4,275

(8 replies, posted in Script)

clyde wrote:

@Dmitry - Many thanks for the link to 2.8 and the example code. Unfortunately, the XML is the response from an HTTP GET request - not a file I can load using LoadFromFile(<filename>). I could use the PosEx though. Which leads me to a question. When does 2.8 come out of Beta. I'm wondering about using the beta just to obtain the PosEx function smile.



Example using HTTPGet('http://site.com/file.xml');

procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
var
    sXML: string;
    s, sRow, sDuration, sDistance: string;
    iPos1, iPos2, iOffset: integer;
begin
     sXML := HTTPGet('http://site.com/file.xml');

     iOffset := 1;
     iPos1 := 1;
     while true do
     begin
         iPos1 := PosEx('<row>', sXML, iOffset);
         if iPos1=0 then break;

         iPos2 := PosEx('</row>', sXML, iOffset);
         iOffset := iPos2+1;

         sRow := Copy(sXML, iPos1, iPos2-iPos1);

         sDuration := Copy(sRow,  Pos('<duration>', sRow),  Pos('</duration>', sRow)-Pos('<duration>', sRow) );
         sDistance := Copy(sRow,  Pos('<distance>', sRow),  Pos('</distance>', sRow)-Pos('<distance>', sRow) );


         s := Copy(sDuration, Pos('<text>', sDuration)+Length('<text>') , Pos('</text>', sDuration)-Pos('<text>', sDuration)-Length('<text>'));
         Form1.Memo1.Lines.Add(s);

         s := Copy(sDistance, Pos('<text>', sDistance)+Length('<text>') , Pos('</text>', sDistance)-Pos('<text>', sDistance)-Length('<text>'));
         Form1.Memo1.Lines.Add(s);
     end;    


end;

Now you can download final version of 2.8