1

(1 replies, posted in General)

I have created a database for picture use but i gave it on a shop to use it and the sqlite file is already like 300mb after the have inputed 5-7% of the desired files and i want to ask what happens with the file? Does it reach up to 4gb like the fat32 system? does it go beyond it? Does the file split up after a specific size? Thanks a lot

2

(6 replies, posted in General)

well the same program works great on another pc ,
yes there was the sqlite file on the folder , stange size though 645 kb and had like 500 entries there with photos each ,
Still it finds the entries only on this computer , i am sure there is something i missed , the thing is what .
worked it on my pc , copied it on another works fine.
but how am i supposed to get the sqlite file with the entries and where is it? O.o

3

(6 replies, posted in General)

all the folder. i did it myself and its so strange cause i used the same version on my pc and works just fine . the thing is how to save the already used entries . I mean im trying to use the .db file on another one and just shows as empty

4

(6 replies, posted in General)

I created a database for a client and the problem was that everytime he tries to copy it and move it to another computer the entries are gone.
How can this happen? I mean its on stock settings to save the database on the file location. i got a copy and i cant see any entries on my pc aswell.
Help please big_smile

well i saw that but something catched my eye. If you just hit X button on top without putting anything in the serial it just opens the form.
Is it my misunderstanding? can i also all on form close to terminate the program aswell?

either way , i would even be happy if i could make the script with the serial key work even without a time limit .
The think is that i already have a login screen script and i dont know how to combine them to work together? is anone able to help with that?
there is the script i have already . how can i add the serial key function to it? can anyone help? big_smile

Also i forgot to mention that im not gonna be publishing it online first and second each client will have a customized version so the keys will not be the same

i know how it works and i know that if they change the date this happens , its just that would you like to run your ompany pc with a different date? would that be wise? lots of things could break down and also the question is not that, The question is would a man with no knowledge in computers that wants a program to help himself cou possibly think of doing that?
If you have a better suggestion now would be a great time to show it ! big_smile big_smile
and then ill love you forever <3

well thats not what i want to do.
1st of all i dont wanna use them as logins just as a serial key just my mind is set on something else.
I actually dont wanna sell my product but rent it for a specific amount of time. So if i give a client of mine his database to use i want to give it working for a specific amount of tme and when he asks me for a new key i wanna have the specific key already inserted so i can give it to him directly without the need for me to mess with the program again. So i need a serial number script with the extra function that the key will trigger a timer that will actually give the user a specific amount of time to use it,
I actually think of it an another measure for not sharing my program and his key to other users, even if he does it will expire sometime. The question is that is it possible to create what you would call a "long term trial" serial key to give the users to have?
I certainly dont have the knoledge to do that kind of customization in script but from the things i know that actually possible and possibly easy too , just not for me to understand and produce.
Any ideas?

10

(6 replies, posted in General)

v_pozidis wrote:
stelios91 wrote:
DriveSoft wrote:

You can try use DropBox to share sqlite.db file but for read only.


For multiple use via Internet you should use DBMS MySQL.

i install dropbox , put my file inside , setup share options for reading file , copy link and put in program settings ,
at start of the program database is missing error , could not find database

also searched DBMS MySQL and im not on that lvl to do that without help hmm can i have some very basic info? ill manage after i think



Den to katalava to video. Katalaves  pos prepei na ginei;

Gia na sou pw tin alitheia oxi, edeikse apla pws na kaneis install to programma kai oxi ti prepei na kaneis gia na to valeis, ase pou to link itan arxaio kai thelei account gia na to katevaseis , i alitheia einai oti an to ftiakseis prepei na gamaei alla ante vres akri. Den nomizw na katsei kaneis na mas to eksigisei. krima

Hello. I wanna make something with my database that i dont have the knowledge to edit myself. First of all i have added a login windows for the users to enter the program with which uses script. Wit this script i also want to implement the function for users to use a serial number to validat the program so i have found this one (included in the serial file) which also contains the trial membership function.
Now the hard part is that i want that edited in order to use it.
I want to add the function for the users to use their own serial numbers on the project and with using different serial numbers to have different durations for it. For example

function CheckKey(sKey: string): boolean;
begin
    Result := False;
    if (sKey='FJKS-TJKS-WEEW-NMVV') or
       (sKey='NNMF-QPOV-FDDK-ZUIF') or
              (sKey='NNM1-QPOV-FDDK-ZUIF') or
       (sKey='VCJK-RGJJ-CWER-GHFJ') then Result := True;

but something like

function CheckKey(sKey: string): boolean;
begin
    Result := False;
    if (sKey='FJKS-TJKS-WEEW-NMVV') then days=now + 30 or
       (sKey='NNMF-QPOV-FDDK-ZUIF') then days=now +180 or
              (sKey='NNM1-QPOV-FDDK-ZUIF') then days=now + 360 or
       (sKey='VCJK-RGJJ-CWER-GHFJ') then days=now + forever or something
then Result := True;

I dont know if this is possible to happen

If you can make this script for me and i can edit the forms after myself no need to get you to that, that would be great!

12

(6 replies, posted in General)

DriveSoft wrote:

You can try use DropBox to share sqlite.db file but for read only.


For multiple use via Internet you should use DBMS MySQL.

i install dropbox , put my file inside , setup share options for reading file , copy link and put in program settings ,
at start of the program database is missing error , could not find database

also searched DBMS MySQL and im not on that lvl to do that without help hmm can i have some very basic info? ill manage after i think

13

(1 replies, posted in General)

I would like someone to help me and give me some explenation on how to add a specific time to the program created like a trial . I want it for example to be usable for the next month or the next 10 days. How do i add the functionality? I saw that on an MVDB created database

14

(6 replies, posted in General)

Is it possible to host online the sqlite file so you can input the online directory in the settings and store the db online for multiple people to use the same file without needing to send them the "updated" file one by one to users of the db?

15

(12 replies, posted in General)

ehwagner wrote:

It's fixed.  See attached.


https://s21.postimg.org/ohwxcg0x3/Base_On_Close.png

thank you so much <3
you really saved me big_smile

16

(12 replies, posted in General)

Here is the project. Thanks a lot, dont worry about the greek characters just see the issue on the script if you can :>

17

(12 replies, posted in General)

jean.brezhonek wrote:

Hello stelios91

Get into the habit of completing a Delphi instruction by one ;

procedure Form1_OnClose (Sender: string; Action: string);
begin
    frmLogin.Close;
end;


JB

well i tried to close the command as you mentioned and did not give the wanted result , still doing the same , process not closed on form close ,
And the other thing is that its the exact same script from the original and it closes the form without having ;

18

(12 replies, posted in General)

DriveSoft wrote:

my database has a serious problem , when i close the exe the database stays open in the task manager and if you open it for example 5 times it leaves open 5 tasks. I cannot have other people using it like this. What should i do?



please look at this:

procedure Form1_OnClose (Sender: string; Action: string);
begin
    frmLogin.Close
end;

I suppose that you have main form frmLogin which hided after login, but application will be in the memory until main form not be close. You must close main form manually using script when your general form of app close.

I changed this value to the mane of my form that i want to be closing :

procedure Base_OnClose (Sender: string; Action: string);
begin
    frmLogin.Close
end;

When i close my Base for the login page closes aswell but still not working hmm what am i missing

"You must close main form manually using script when your general form of app close."

what do you mean? big_smile sorry i am bad at english if you mean change the form name i did

19

(12 replies, posted in General)

Also i saw that my password is not marked with * but instead shows the characters hmm 
i cant seem to find what im doing wrong , i changed everything that should be changed.

var
   sUser: string = '';



procedure frmLogin_OnShow (Sender: string; Action: string);
begin
     frmLogin.edPassword.PasswordChar := '*';
     frmLogin.bLogin.Default:=True;
end;

procedure Base_OnClose (Sender: string; Action: string);
begin
    frmLogin.Close
end;


                           



procedure frmLogin_bLogin_OnClick (Sender: string; var Cancel: boolean);
var
   s: string;
begin
     // SQL query for check user and password
     s := VarToStr( SQLExecute('SELECT count(id) FROM users WHERE (login = ''' + frmLogin.edUser.Text + ''') AND (password = ''' + frmLogin.edPassword.Text + ''');') );

     // if SQL query found login and password
     if (s <> '0') and (s<>'') then
     begin
          sUser := frmLogin.edUser.Text; // remember username

          // check admin rights
          s := VarToStr( SQLExecute('SELECT administrator FROM users WHERE (login = ''' + sUser + ''');') );
          if s='0' then Base.bUsers.Enabled := False; // if the user does not have administrator privileges, deactivate the button to create other users

          // check permissions to read
          s := VarToStr( SQLExecute('SELECT read FROM users WHERE (login = ''' + sUser + ''');') );
          if s='0' then Base.edit.Enabled := False; // deactivate the button to edit the record

          // check write permissions
          s := VarToStr( SQLExecute('SELECT write FROM users WHERE (login = ''' + sUser + ''');') );
          if s='0' then
          begin
               Base.New.Enabled := False;      // deactivate the button to add the record
               CharacterSheet.Save.Enabled := False; // deactivate the button to save the record
               ActivityLog.save.Enabled := False;
               Connections.save.Enabled := False;
          end;

          // check permission to delete
          s := VarToStr( SQLExecute('SELECT remove FROM users WHERE (login = ''' + sUser + ''');') );
          if s='0' then Base.delete.Enabled := False; // deactivate the button to delete the record

          // check permission to search
          s := VarToStr( SQLExecute('SELECT search FROM users WHERE (login = ''' + sUser + ''');') );
          if s='0' then base.search.Enabled := False; // deactivate the button to search the records


          frmLogin.Hide; // close login form
          Base.Show;
     end else MessageDlg('password is incorrect', mtError, mbOk, 0); // message if the password is incorrect

end;






begin
  // Initial check whether there is a database administrator user
  // if not, create an administrator with username admin and password admin
     if VarToStr( SQLExecute('SELECT count(id) FROM users WHERE administrator=1;') ) = '0' then
     begin
         SQLExecute('INSERT INTO users (login, password, read, write, remove, search, administrator) VALUES ("admin", "admin", 1, 1, 1, 1, 1);');
         frmLogin.edUser.Text := 'admin';
         frmLogin.edPassword.Text := 'admin';
     end;

end.

20

(12 replies, posted in General)

domebil wrote:

And a script problem

i got the exact same script and changed the form names. its exactly original as in the link. it doesnt happen in the original only on mine

21

(12 replies, posted in General)

I inserted in my database the login with different priviledge functionality found here: http://myvisualdatabase.com/forum/viewtopic.php?id=1422

and by that time my database has a serious problem , when i close the exe the database stays open in the task manager and if you open it for example 5 times it leaves open 5 tasks. I cannot have other people using it like this. What should i do?
Password login works great.

22

(2 replies, posted in General)

its great mate! you nailed it! ill try to adjust the code to my own project

i copied the whole script, crated the right forms with the same names and replaced what had to be replaced.
Its not working for me and its not even hiding the password when i try it.... maybe it has something to do with the suser at the start?
Im almost noob btw. The text boxes and everything is named correctly. no errors when starting the exe

24

(2 replies, posted in General)

can i add a table grid inside a current record form and add child records inside contained in the main database?
i know i may not say it right but ill try

we have records like
a
b
c
d
e

i want when i open for example record a, to include record c and e as child records inside it being shown on a table grid so i can access them from the already appeared record.

like c is a's cousin for example and i want to include a family record
sorry for my bad description..............

25

(7 replies, posted in General)

its the a correction about my forms from another one of my projects which i tried changing that maybe would sovle my problem but it wasnt working. I tried changing all my files from a project that was working at the time cause i thought it might work
Edit:
So basically i made a mistake and made a table field with no name and that caused the malfunction...