Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random quote for the day..
Message
 
 
To
11/04/2009 22:21:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01394387
Message ID:
01394410
Views:
85
>What's a better way to do a random "quote for the day"?

What is your back-end?

In SQL Server to generate a random record you will use

select top 1 * from myTable order by NewID()

In VFP I would agree with Sergey about generating random record using rand() function.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform