1 (edited by v_pozidis 2024-02-08 20:20:08)

Topic: Help please !!!! Pascal Libraries in MVDB

Hi to all,
hope you are all fine. I have a question. How can I input in my software Pascal Libraries like the following ?

  uses
  SysUtils, DateUtils, Math;

Re: Help please !!!! Pascal Libraries in MVDB

Any help is welcome!!!!

Re: Help please !!!! Pascal Libraries in MVDB

MVD doesn't support this.

You can write some simple functions yourself, but most are impossible.
If it's not a secret, what do you want from these libraries?

Re: Help please !!!! Pascal Libraries in MVDB

I would like to include some script from my old softwares in mvdb. Some script like calculation of sunset and sunrise which needs some types from libraries.

Re: Help please !!!! Pascal Libraries in MVDB

Well, if you have already written similar calculations before, ARCSIN ARCCOS ARCTAN ARCTAN2 will not be difficult for you. I only see this as a problem for converting to radians. And this is the first way.
The second way is to use a newer version of SQLITE and perform calculations through it.
Something like this )))

Re: Help please !!!! Pascal Libraries in MVDB

Calculation of sunrise and sunset.


Option 3. All calculations are carried out in SQLITE in one query.
Options 1 and 2 also work.
Something like this.

Post's attachments

Attachment icon Sunr SQL 3.zip 1.43 mb, 45 downloads since 2024-02-14 

Re: Help please !!!! Pascal Libraries in MVDB

Thank you all

Re: Help please !!!! Pascal Libraries in MVDB

Calculation via Delphi functions.
Another algorithm for calculating sunset and sunrise.

Post's attachments

Attachment icon sunR 1.zip 1.43 mb, 41 downloads since 2024-02-15 

Re: Help please !!!! Pascal Libraries in MVDB

do I ask more if I like to get also the moon phases ?? (Age of moon day and the phase of it ?) It is similar the sunset and sunrise but can not understand all the maths . Thank you in advance.

Re: Help please !!!! Pascal Libraries in MVDB

Of course you can ask.
I showed you that there are no obstacles in MVD.
You also have hands, you have a head, you have the Internet, reference books... So go ahead.


In addition to appetite, you also need to have a conscience.

Re: Help please !!!! Pascal Libraries in MVDB

Well I will try to understand all those math types.  Thanks for your time helping me.

Re: Help please !!!! Pascal Libraries in MVDB

"But even when the moon looks like it’s waning…it’s actually never changing shape. Don’t ever forget that." —Ai Yazawa

Post's attachments

Attachment icon MP.zip 1.58 mb, 29 downloads since 2024-04-04