Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random records
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00935859
Message ID:
00935862
Views:
16
How about this:
FUNCTION getNewId

loGUID = CreateObject ("Scriptlet.Typelib")
lcGUID = SUBSTR (loGUID.GUID, 2, 36)
loGUID = NULL
RETURN lcGUID

...

SELECT TOP 10 MyTable.MyField, getNewId () AS GUID FROM MyTable ORDER BY GUID
HTH

>By any chance anyone knows of a routine/function similar to that in sql, newid(), to generate random records from a table in vfp?
>
>The sql select statement, select top 10 id from tblTest order by newid()
Previous
Reply
Map
View

Click here to load this message in the networking platform