PDA

View Full Version : date as compiler variable



NewsArchive
04-10-2013, 01:14 AM
Hello

I search a function with I writes the date yyyymmdd in an ini file.

Indeed, as a compiler variable!

Dirk

NewsArchive
04-10-2013, 02:20 AM
ok - i have make following:

#edit ini file ....
#sleep for 3 seconds
#get file info(File Date) from ini file

^^

it´s work - BUT the date is yyyy/mm/dd

i need yyyymmdd :(


Dirk

NewsArchive
04-10-2013, 03:37 AM
Dirk,

I have developed and uploaded a demo for you:

http://www.lindersoft.com/projects/currentdate.zip

The "writecurdate.sb8" project compiles a small helper tool to retrieve the
current date in the yyyymmdd date formar. The "getdate.sb8" demo project
calls "writecurdate.exe" and stores the current date in the [CURRENTDATE]
compiler variable.

Friedrich

NewsArchive
04-10-2013, 03:38 AM
Thank you very much Friedrich, but this is not the final solution
hopefully ;)

Dirk Büchel

NewsArchive
04-10-2013, 03:38 AM
> Thank you very much Friedrich, but this is not the final
> solution hopefully ;)

Yes, it is.

It's impossible to provide all kind of built-in functions. For example,
another user might need the current "Gregorian Day" at compile time for his
own copy protection system. Or a user needs the current date/time Base64
encoded. And so on...

That's why you can "extend" the system on your own.

Friedrich