Topic: Beta version 2.3

My Visual Database 2.3 beta


What's new?
- Added class TWebBrowser, allow you create on form web browser to display web pages and pdf documents, example:

procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
var
    Web: TWebBrowser;
begin
    Web := TWebBrowser.Create(Form1);
    TWinControl(Web).Parent := Form1;
    Web.Width := Form1.Width;
    Web.Height := Form1.Height;

    Web.Navigate('http://ya.ru');
end;


- Added functions to get created/modified/accessed time to file

function CreatedFileTime(const FileName: string; var FileTime: TDateTime): boolean
function ModifiedFileTime(const FileName: string; var FileTime: TDateTime): boolean
function AccessedFileTime(const FileName: string; var FileTime: TDateTime): boolean

example:

procedure Form1_Button2_OnClick (Sender: string; var Cancel: boolean);
var
    dt: TDateTime;
begin
    if CreatedFileTime('c:\temp\1.txt', dt) then
        ShowMessage( DateTimeToStr(dt) )
        else ShowMessage('Failed to get time.');
end;


- Added a property MultiSelect for ComboBox, allow to select severals values for search



Download:
http://myvisualdatabase.com/download/se … 20beta.zip

Dmitry.

Re: Beta version 2.3

Hello Dmitry,


I think I found a small bug in the latest 2.3 version you posted on the main page.


With this version, a page control with 3 tabs, and a tablegrid on each tab, would not display the data in the grid on opening the form containing the page control.
Then, when you switch tabs, everything works fine. The tablegrid is set to auto execute of the query.


I can not certify this is a bug, maybe I changed something in my code, but I don't think so because when I compile the project with previous version, everything works just fine.


This is on opening of the Form :


http://i.imgur.com/aLQxakS.jpg


And this is after switching tabs and coming back to the initial one


http://i.imgur.com/WILiV1q.jpg


Cheers


Mathias

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Beta version 2.3

mathmathou

Thanks for the bug report.
Please download latest version again
http://myvisualdatabase.com/thank_you_f … ading.html


Please let me know result.
Thanks.

Dmitry.

Re: Beta version 2.3

You are a magician right ?


Everything is fine and working now. Thank you Dmitry !


Cheers


Mathias

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Beta version 2.3

The new installer works fine, but I think there is another bug :

when you make a mistake in your script/code, the error message displays :

Incompatible Type : 'Integer',  at

but no more line number and the red line is also gone

I know we were all becoming experts but that was kind of useful tongue tongue tongue tongue

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Beta version 2.3

mathmathou
Checked, works.


Please send me your project with this mistake to support@drive-software.com

Dmitry.

Re: Beta version 2.3

Mail sent.


Don't waste your time looking for my mistake, I'll find it tongue , but I'm wondering why my editor is acting like this...

Rename the attached file with zip extension, Google would not let me send it like this.

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

8 (edited by mathmathou 2016-01-06 01:51:25)

Re: Beta version 2.3

Very straaaange,


I commented the few lines of code I added lately, and everything is back to normal. Even the personal menus I set up that also disappeared are back.


I must have unknown superpowers to break-up the editor with my junk code tongue tongue tongue tongue


By the way, I found the error causing the editor to go berserk :

I replaced :

new_nb_delete := Inc(nb_delete);

by

new_nb_delete := nb_delete + 1;

and everything is back to normal.


I thought it was possible to Inc Integers as they both are...

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Beta version 2.3

mathmathou

same

Inc(nb_delete);
new_nb_delete := nb_delete + 1;
Dmitry.

Re: Beta version 2.3

I think I will wait a little bit before moving to version 2.3 as there are too many bugs discovered in a short period of time at the moment... hmm