Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instead of using the server date, use future date.
Message
From
04/11/2009 15:14:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/11/2009 11:51:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01432808
Message ID:
01433211
Views:
43
>>I think you should use code references to search for every place where there is a reference to date(), then see where it would be appropriate to use a User Defined Function instead.
>
>That would be a good idea, but there are serveral hundered thousand lines of code.
>Thanks!

You could use a global (yecch) variable... and replace date() with gnFutureDays+date() everywhere. Then for testing set gnFutureDays to 2300 or whatever number of days, and for production set it to zero.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform