While working on complicated project i need to build and program many times, in order for me to keep track of what build i'm using i suggest to add automatic build and version options.
1. Define a Global variables or function (like GetDateTime())
2. Add text feilds in the Project options for the Version values (int)
3. enable option in the Project to automaticaly increment the value each build
Details:
Values = Major.Minor.Build
major 0..99
minor 0..99
build 0..99
Functions:
GetVersion = 11.22.33
GetVerMajor = 11
GetVerMinor = 22
GetVerBuild = 33
Thanks
Build and Version
- nikola.kostic
- mikroElektronika team
- Posts: 433
- Joined: 11 Aug 2009 12:12
Re: Build and Version (GetDateTime)
Today I was looking for something that does exactly what "GetDateTime" does in MikroBasic compiler. Unfortunately there is nothing I can find in the MikroC/PIC or MikroC/dsPIC compilers. Is there another way to accomplish the same results in MikroC compilers?
- lana.arsic
- mikroElektronika team
- Posts: 1715
- Joined: 15 Jan 2016 12:50
Re: Build and Version
Hi,
I believe I have answered you on the ticket,
so I suggest you to continue our correspondence there.
Best regards,
Lana
I believe I have answered you on the ticket,
so I suggest you to continue our correspondence there.
Best regards,
Lana
Re: Build and Version
Was this suggestion ever implemented during the last 9 years?
Like all things MikroElectronika, I don't hold much hope, but who knows?
Like all things MikroElectronika, I don't hold much hope, but who knows?
- petar.suknjaja
- mikroElektronika team
- Posts: 683
- Joined: 05 Mar 2018 09:44
- Location: Belgrade
Re: Build and Version
Hi,
No, it wasn't implemented.
But search through the forum or libstock, I believe that you'll find some practical solutions.
Kind regards,
Petar
No, it wasn't implemented.
But search through the forum or libstock, I believe that you'll find some practical solutions.
Kind regards,
Petar
Re: Build and Version
Thank you for the clarification.petar.suknjaja wrote:Hi,
No, it wasn't implemented.
But search through the forum or libstock, I believe that you'll find some practical solutions.
Kind regards,
Petar
I hope you realise why telling me to essentially google my problem for a practical solution is zero help though. Searching for a solution is how I ended up on this page.
Classic MikroE!
- petar.suknjaja
- mikroElektronika team
- Posts: 683
- Joined: 05 Mar 2018 09:44
- Location: Belgrade
Re: Build and Version
Hi GaseousJ,
While I've searched for something similar, I came across some interesting ideas and even on a application on the libstock.
I'm sure that you'll find something useful with the Search tool for this forum, or maybe an idea how to create your own
routine that would incorporate that functionality.
I would recommend you to take a look for the macros such as __DATE__ and __TIME__
and maybe this application gets handy:
https://libstock.mikroe.com/projects/vi ... -generator
Also, could I ask you to post here only relevant to this post.
If you have an opinion or suggestion about MikroE, could I ask you to write it in topic assigned for it.
Let's keep topics clean and useful to other users.
Thank you for understanding,
Kind regards,
Petar
I never told you to google for your problem. I told you to search this forum or libstock.GaseousJ wrote:I hope you realise why telling me to essentially google my problem for a practical solution is zero help though. Searching for a solution is how I ended up on this page.
While I've searched for something similar, I came across some interesting ideas and even on a application on the libstock.
I'm sure that you'll find something useful with the Search tool for this forum, or maybe an idea how to create your own
routine that would incorporate that functionality.
I would recommend you to take a look for the macros such as __DATE__ and __TIME__
and maybe this application gets handy:
https://libstock.mikroe.com/projects/vi ... -generator
Also, could I ask you to post here only relevant to this post.
If you have an opinion or suggestion about MikroE, could I ask you to write it in topic assigned for it.
Let's keep topics clean and useful to other users.
Thank you for understanding,
Kind regards,
Petar