Convert $DATE$ to a number

Got a problem you cannot solve? Try here.
Post Reply
penfold
Posts: 48
Joined: Mon Jan 17, 2011 8:37 am

Convert $DATE$ to a number

Post by penfold »

Hi All,

How can you convert the var $DATE$ to a number such that you can do something like;
or will this work?

DATE_NUMBER = Ord($DATE$)
Set Random Number Generator Seed = $DATE_NUMBER$

its just to generate a random number, nothing secret

Regards
Steve
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Convert $DATE$ to a number

Post by giaviv »

Dear Steve,

The best way to do this would be to write a simple dll (or better yet, a plugin) that generates a random number within a given range and use Call DLL function. Otherwise it will not be straight forward to implement random number generation with InstallAware. Let me know if that helps.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply