Topic: Version 6.3
Version 6.3
http://myvisualdatabase.com/download/myvisualdb.exe
What's new?
• Added a new function ExportAllToCSV, now you can export whole the database to csv files
Function parameters
function ExportAllToCSV(Path: string; OverwriteIfExists: boolean = True; ShowProgress: boolean = False; FirstRowFieldsName: boolean = True; Separator: string = '',''; Enclosing: boolean = True; EndOfLine: TCsvEndOfLine = ceCrLf): boolean;
example
if ExportAllToCSV('e:\temp\') then ShowMessage('Done') else ShowMessage('Error');
• Added a new function ExportToCSV, now you can export SQL result to csv file
Function parameters
function ExportToCSV(FileName: string; SQL: string; ShowProgress: boolean = False; FirstRowFieldsName: boolean = True; Separator: string = ','; Enclosing: boolean = True; EndOfLine: TCsvEndOfLine = ceCrLf): integer
example
procedure Form1_Button5_OnClick (Sender: TObject; var Cancel: boolean);
var
i: integer;
begin
i := ExportToCSV('d:\123.csv', 'SELECT id, lastname, firstname FROM employees');
ShowMessage('Exported ' + IntToStr(i) + ' records.');
end;
• Added a new class Application.User, to access current user properties
the following properties are available
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;
• Now you can specify for a ComboBox component sorting order, using properties "SoftField" and "SortOrder" via Object Inspector.
• Added two new methods for Image component: function PasteBitmapFromClipboard: boolean and function CanPasteBitmapFromClipboard: boolean
• Added a new event OnAfterEdit for TableGrid component
• Added a new method ScaleBy for Form
• Fixed some bugs